PHPackages                             georanma/lumen-amazon-mws - 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. georanma/lumen-amazon-mws

ActiveLibrary[API Development](/categories/api)

georanma/lumen-amazon-mws
=========================

Use Amazon's MWS web services with Lumen 5.x. Based on sonnenglas/amazon-mws-laravel package and modified to make it compatible with latest lumen releases (+ bugfixes).

4.0(6y ago)02392Apache-2.0PHPPHP &gt;=7.2

Since Apr 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/georanma/amazon-mws-lumen)[ Packagist](https://packagist.org/packages/georanma/lumen-amazon-mws)[ RSS](/packages/georanma-lumen-amazon-mws/feed)WikiDiscussions stable Synced today

READMEChangelog (6)Dependencies (2)Versions (27)Used By (0)

amazon-mws-laravel
==================

[](#amazon-mws-laravel)

Notes
-----

[](#notes)

Fork for Lumen framework to adjust for how config is loaded up.

A PHP package to connect to Amazon's Merchant Web Services (MWS) in an object-oriented manner, with a focus on intuitive usage.

Currently optimizing for Lumen Framework.

This is **NOT** for Amazon Web Services (AWS) - Cloud Computing Services.

### Release 4.0 Breaking Changes

[](#release-40-breaking-changes)

If you are not using Lumen Framework &gt;=7.0, please look at release tags &lt;4.0. Below 4.0 is confirmed compatible with Lumen 5.5, but I can not confirm compatibility between 5.5 and 6.0 below tag 4.0. This will depend on the required illuminate\\support version for your Lumen version.

Installation
------------

[](#installation)

1. `composer require georanma/lumen-amazon-mws`
2. add the service provider to the providers array in config/app.php:

```
Sonnenglas\AmazonMws\ServiceProvider::class,

```

There's no facades to add in config/app.php

3. Copy amazon-mws.php configuration file from src/config/amazon-mws.php to Lumen's config directory.

Usage
-----

[](#usage)

All of the technical details required by the API are handled behind the scenes, so users can easily build code for sending requests to Amazon without having to jump hurdles such as parameter URL formatting and token management. The general work flow for using one of the objects is this:

1. Create an object for the task you need to perform.
2. Load it up with parameters, depending on the object, using *set\_\_\_\_* methods.
3. Submit the request to Amazon. The methods to do this are usually named *fetch\_\_\_\_* or *submit\_\_\_\_* and have no parameters.
4. Reference the returned data, whether as single values or in bulk, using *get\_\_\_\_* methods.
5. Monitor the performance of the library using the built-in logging system.

Note that if you want to act on more than one Amazon store, you will need a separate object for each store.

Also note that the objects perform best when they are not treated as reusable. Otherwise, you may end up grabbing old response data if a new request fails.

Example Usage
-------------

[](#example-usage)

Here are a couple of examples of the library in use. All of the technical details required by the API are handled behind the scenes, so users can easily build code for sending requests to Amazon without having to jump hurdles such as parameter URL formatting and token management.

Here is an example of a function used to get all warehouse-fulfilled orders from Amazon updated in the past 24 hours:

```
use Sonnenglas\AmazonMws\AmazonOrderList;

function getAmazonOrders() {
    $amz = new AmazonOrderList("myStore"); //store name matches the array key in the config file
    $amz->setLimits('Modified', "- 24 hours");
    $amz->setFulfillmentChannelFilter("MFN"); //no Amazon-fulfilled orders
    $amz->setOrderStatusFilter(
        array("Unshipped", "PartiallyShipped", "Canceled", "Unfulfillable")
        ); //no shipped or pending
    $amz->setUseToken(); //Amazon sends orders 100 at a time, but we want them all
    $amz->fetchOrders();
    return $amz->getList();
}
```

This example shows a function used to send a previously-created XML feed to Amazon to update Inventory numbers:

```
use Sonnenglas\AmazonMws\AmazonOrderList;

function sendInventoryFeed($feed) {
    $amz = new AmazonFeed("myStore"); //store name matches the array key in the config file
    $amz->setFeedType("_POST_INVENTORY_AVAILABILITY_DATA_"); //feed types listed in documentation
    $amz->setFeedContent($feed);
    $amz->submitFeed();
    return $amz->getResponse();
}
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~89 days

Recently: every ~44 days

Total

21

Last Release

2245d ago

Major Versions

1.0.1 → 2.0.02016-02-02

2.0.3 → 3.0.02017-01-28

3.5 → 4.02020-03-19

PHP version history (3 changes)1.0.0PHP &gt;=5.4.0

2.0.0PHP &gt;=5.5.9

4.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/8adb86cba8889a6ab810104ce5d085a720a9b4ebdfdd1e6b088d0cbac863364d?d=identicon)[georanma](/maintainers/georanma)

---

Top Contributors

[![Peardian](https://avatars.githubusercontent.com/u/2624085?v=4)](https://github.com/Peardian "Peardian (74 commits)")[![przemekperon](https://avatars.githubusercontent.com/u/169778?v=4)](https://github.com/przemekperon "przemekperon (40 commits)")[![carl689](https://avatars.githubusercontent.com/u/619419?v=4)](https://github.com/carl689 "carl689 (40 commits)")[![tomcoonen](https://avatars.githubusercontent.com/u/988013?v=4)](https://github.com/tomcoonen "tomcoonen (8 commits)")[![georanma](https://avatars.githubusercontent.com/u/16141834?v=4)](https://github.com/georanma "georanma (5 commits)")[![georgeNanoWebGroup](https://avatars.githubusercontent.com/u/35578386?v=4)](https://github.com/georgeNanoWebGroup "georgeNanoWebGroup (5 commits)")[![mikevrind](https://avatars.githubusercontent.com/u/594341?v=4)](https://github.com/mikevrind "mikevrind (4 commits)")[![pdbreen](https://avatars.githubusercontent.com/u/1670907?v=4)](https://github.com/pdbreen "pdbreen (3 commits)")[![Ig0r-M-magic42](https://avatars.githubusercontent.com/u/22006850?v=4)](https://github.com/Ig0r-M-magic42 "Ig0r-M-magic42 (2 commits)")[![EliasKotlyar](https://avatars.githubusercontent.com/u/9529505?v=4)](https://github.com/EliasKotlyar "EliasKotlyar (2 commits)")[![lottebglamorise](https://avatars.githubusercontent.com/u/133896455?v=4)](https://github.com/lottebglamorise "lottebglamorise (2 commits)")[![vaneavasco](https://avatars.githubusercontent.com/u/2719705?v=4)](https://github.com/vaneavasco "vaneavasco (1 commits)")[![ennnnny](https://avatars.githubusercontent.com/u/9587073?v=4)](https://github.com/ennnnny "ennnnny (1 commits)")[![forgueam](https://avatars.githubusercontent.com/u/224097?v=4)](https://github.com/forgueam "forgueam (1 commits)")[![gitmastro](https://avatars.githubusercontent.com/u/1649046?v=4)](https://github.com/gitmastro "gitmastro (1 commits)")[![jeyasithar](https://avatars.githubusercontent.com/u/3623998?v=4)](https://github.com/jeyasithar "jeyasithar (1 commits)")[![michalmagic42](https://avatars.githubusercontent.com/u/46316250?v=4)](https://github.com/michalmagic42 "michalmagic42 (1 commits)")[![mohamedziada](https://avatars.githubusercontent.com/u/845253?v=4)](https://github.com/mohamedziada "mohamedziada (1 commits)")[![a349944418](https://avatars.githubusercontent.com/u/4004002?v=4)](https://github.com/a349944418 "a349944418 (1 commits)")

---

Tags

phpapilaravelamazonlumenmws

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/georanma-lumen-amazon-mws/health.svg)

```
[![Health](https://phpackages.com/badges/georanma-lumen-amazon-mws/health.svg)](https://phpackages.com/packages/georanma-lumen-amazon-mws)
```

###  Alternatives

[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[sonnenglas/laravel-amazon-mws

Use Amazon's MWS web services with Laravel ^7.x. Based on creacoon/amazon-mws-laravel package and modified to make it compatible with latest Laravel releases (+ bugfixes).

644.5k](/packages/sonnenglas-laravel-amazon-mws)[shipu/php-aamarpay-payment

PHP client for Aamarpay Payment Gateway API

3214.6k](/packages/shipu-php-aamarpay-payment)

PHPackages © 2026

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