New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

dawson/amazon-ecs

With Laravel, search and lookup Amazon products easily.
3,475 51

Larablocks Analysis

dawson/amazon-ecs works with Laravel 5 (latest release 2.2.1, Jan 14, 2019), which reached end of life: no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5, past end of life
  • No release in the last 12 months (last: Jan 14, 2019)
  • 2 downloads a month (needs 10,000)
  • 51 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Jan 14, 2019.
  • No releases in the last 12 months.
  • First released: Dec 10, 2015.
  • Monthly downloads: 2.
  • 3 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 4, 2026.

Install
composer require dawson/amazon-ecs
Latest Version:2.2.1
PHP:>=5.6.4
Laravel:5
License:MIT
Last Updated:Nov 22, 2022
Links: GitHub  ·  Packagist
Maintainer: joedawson

Amazon ECS (E-Commerce Services) Package for Laravel

If you need the ability to search Amazon's catalog of products or lookup an individual item with Laravel, then this may be the package for you.

Please note, you'll need to ensure you have an associate tag before using this package.

Installation

composer require dawson/amazon-ecs

After you have successfully installed, add the follow Service Provider to your config/app.php.

Dawson\AmazonECS\AmazonECSServiceProvider::class,

And the following facade, also in config/app.php.

'Amazon' => Dawson\AmazonECS\AmazonECSFacade::class

Now we'll go ahead and publish the amazon.php configuration file.

php artisan vendor:publish --provider="Dawson\AmazonECS\AmazonECSServiceProvider"

Open up the amazon.php configuration file and enter your credentials or leverage the use of environment variables which're used by default.

When it comes to choosing a locale, you have a choice of the following:

Locale Country
co.uk United Kingdom
com United States
ca Canada
com.br Brazil
de Germany
es Spain
fr France
in India
co.jp Japan
com.mx Mexico

You should now be correctly configured!

Usage

Currently, there are two methods available which are search and lookup.

$results = Amazon::search('Home Alone')->json();

It's that simple!

Please note, this currently searches the entire Amazon catalog. I plan on adding the ability to search within a given category soon so keep an eye out for that.

Lookup

You can also lookup any given item, assuming it's availble on your configure locale and is a valid ASIN, of which is possible by doing the following:

$product = Amazon::lookup('B004VLKY8M')->json();

This will simply return the product, it's attributes and item links.

Responses

Currently, there are two available response methods. The default xml method, or my preferred - json.

The following returns an XML string.

$xml = Amazon::search('Call of Duty')->xml();

And as you can probably assume, the following returns a JSON string.

$json = Amazon::search('Halo')->json();

Questions & Issues

Should you have any questions or come across a problem, please feel free to submit an issue.

License

This package is open-sourced software licensed under the MIT license.


Planned

  • Finish Documentation
  • Locales
  • Better Exception Handling
  • Cart abilities, such as modifying, adding, clearing etc.
  • XML to JSON (the ECS API returns an XML response, I myself would like to have the ability to convert this to JSON - but optional)

Related Packages

revolution/laravel-amazon-product-api

Amazon Product Advertising API for Laravel

58,847 80
revolution/socialite-amazon

Socialite for Login with Amazon

197,553 13
ireisaac/mws

mws api

287 3
padosoft/laravel-affiliate-network

agnostic helpers to use as foundation in packages and other project

1,507 80
luigel/laravel5-amazon-mws

Use Amazon's MWS web services with Laravel. Based on creacoon/amazon-mws-laravel...

4,661 0

Version History

Version Released PHP Laravel License
2.2.1 >=5.6.4 >=5.1 MIT
2.2.0 >=5.6.4 >=5.1 MIT
2.1.0 >=5.6.4 >=5.1 MIT
2.0.1 >=5.6.4 >=5.1 MIT
v2.0.0 >=5.6.4 >=5.1 MIT