PHPackages                             kkgerry/laravel-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. kkgerry/laravel-amazon-mws

Active1[API Development](/categories/api)

kkgerry/laravel-amazon-mws
==========================

1.1.4(5y ago)2202[1 issues](https://github.com/kkgerry/laravel-amazon-mws/issues)MITPHPPHP &gt;=5.5.9CI failing

Since Sep 2Pushed 4y ago3 watchersCompare

[ Source](https://github.com/kkgerry/laravel-amazon-mws)[ Packagist](https://packagist.org/packages/kkgerry/laravel-amazon-mws)[ RSS](/packages/kkgerry-laravel-amazon-mws/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (15)Used By (0)

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

[](#amazon-mws-laravel)

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 Laravel Framework.

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

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

[](#installation)

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

```
Kkgerry\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 Laravel'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 Kkgerry\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 Kkgerry\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

27

—

LowBetter than 47% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 60.6% 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 ~36 days

Recently: every ~84 days

Total

14

Last Release

2025d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/73852c3b696f93227ceca53499c19b3c42c000e473f33de184449110658cc5c8?d=identicon)[kkgerry](/maintainers/kkgerry)

---

Top Contributors

[![kkgerry](https://avatars.githubusercontent.com/u/8937585?v=4)](https://github.com/kkgerry "kkgerry (20 commits)")[![gdmec07140535](https://avatars.githubusercontent.com/u/14228386?v=4)](https://github.com/gdmec07140535 "gdmec07140535 (12 commits)")[![AdolphYu](https://avatars.githubusercontent.com/u/13192319?v=4)](https://github.com/AdolphYu "AdolphYu (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kkgerry-laravel-amazon-mws/health.svg)

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

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

815320.5k3](/packages/defstudio-telegraph)[riclep/laravel-storyblok

A Laravel wrapper around the Storyblok API to provide a familiar experience for Laravel devs

6277.0k5](/packages/riclep-laravel-storyblok)[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)[rapidez/core

Rapidez Core

1822.4k66](/packages/rapidez-core)

PHPackages © 2026

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