PHPackages                             dawson/amazon-ecs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. dawson/amazon-ecs

ActiveLibrary[API Development](/categories/api)

dawson/amazon-ecs
=================

With Laravel, search and lookup Amazon products easily.

2.2.1(7y ago)513.5k26[2 issues](https://github.com/JoeDawson/amazon-ecs/issues)[1 PRs](https://github.com/JoeDawson/amazon-ecs/pulls)MITPHPPHP &gt;=5.6.4

Since Dec 10Pushed 3y ago4 watchersCompare

[ Source](https://github.com/JoeDawson/amazon-ecs)[ Packagist](https://packagist.org/packages/dawson/amazon-ecs)[ RSS](/packages/dawson-amazon-ecs/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (9)Dependencies (2)Versions (12)Used By (0)

Amazon ECS (E-Commerce Services) Package for Laravel
====================================================

[](#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
------------

[](#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:

LocaleCountry`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
-----

[](#usage)

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

### Search

[](#search)

```
$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

[](#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
---------

[](#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 &amp; Issues
----------------------

[](#questions--issues)

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

License
-------

[](#license)

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

---

Planned
-------

[](#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)

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~282 days

Recently: every ~497 days

Total

10

Last Release

1316d ago

Major Versions

1.0.3 → v2.0.02017-02-28

2.2.1 → v3.x-dev2022-11-22

PHP version history (2 changes)1.0.0PHP &gt;=5.5.0

v2.0.0PHP &gt;=5.6.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/3fd48706b946f9a2e2790697d8701cdc166ab96085ed9d28057e77bb38b11f89?d=identicon)[joedawson](/maintainers/joedawson)

---

Top Contributors

[![joedawson](https://avatars.githubusercontent.com/u/1009696?v=4)](https://github.com/joedawson "joedawson (25 commits)")[![Sinepel](https://avatars.githubusercontent.com/u/3178858?v=4)](https://github.com/Sinepel "Sinepel (2 commits)")[![brino](https://avatars.githubusercontent.com/u/986822?v=4)](https://github.com/brino "brino (1 commits)")[![mrandibilbao](https://avatars.githubusercontent.com/u/16474360?v=4)](https://github.com/mrandibilbao "mrandibilbao (1 commits)")[![robertem128](https://avatars.githubusercontent.com/u/19718129?v=4)](https://github.com/robertem128 "robertem128 (1 commits)")

---

Tags

amazonecslaravelmarketplacelaravelamazonECSProduct Advertisingaffiliateassociate

### Embed Badge

![Health badge](/badges/dawson-amazon-ecs/health.svg)

```
[![Health](https://phpackages.com/badges/dawson-amazon-ecs/health.svg)](https://phpackages.com/packages/dawson-amazon-ecs)
```

###  Alternatives

[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)[smodav/mpesa

M-Pesa API implementation

16167.1k1](/packages/smodav-mpesa)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1348.1k1](/packages/jasara-php-amzn-selling-partner-api)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
