PHPackages                             two-bros/php-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. two-bros/php-amazon-mws

ActiveLibrary[API Development](/categories/api)

two-bros/php-amazon-mws
=======================

An open-source library to connect to Amazon's MWS web services in an object-oriented manner, with a focus on intuitive usage. Forked from CPIGroup/phpAmazonMWS to add namespacing and cleanup for further development.

v1.0.001(10y ago)28Apache-2.0PHPPHP ~5.4

Since Mar 29Pushed 10y ago1 watchersCompare

[ Source](https://github.com/2brosdevelopment/php-amazon-mws)[ Packagist](https://packagist.org/packages/two-bros/php-amazon-mws)[ RSS](/packages/two-bros-php-amazon-mws/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

phpAmazonMWS
============

[](#phpamazonmws)

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

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

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:

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

```
function sendInventoryFeed($feed) {
    $amz=new AmazonFeed(); //if there is only one store in config, it can be omitted
    $amz->setFeedType("_POST_INVENTORY_AVAILABILITY_DATA_"); //feed types listed in documentation
    $amz->setFeedContent($feed);
    $amz->submitFeed();
    return $amz->getResponse();
}
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~250 days

Total

2

Last Release

3852d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d9833df9d1475576c4dda8753d8b43942ce7e676c87f39564ed7f49a51a84450?d=identicon)[vsposato](/maintainers/vsposato)

---

Top Contributors

[![vsposato](https://avatars.githubusercontent.com/u/894126?v=4)](https://github.com/vsposato "vsposato (7 commits)")

---

Tags

phpapiamazon

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/two-bros-php-amazon-mws/health.svg)

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

###  Alternatives

[cpigroup/php-amazon-mws

An open-source library to connect to Amazon's MWS web services in an object-oriented manner, with a focus on intuitive usage.

255123.7k2](/packages/cpigroup-php-amazon-mws)[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.7k](/packages/sonnenglas-laravel-amazon-mws)[jakiboy/apaapi

Easily integrate with the Amazon Affiliate Program using the lightweight APAAPI library for Amazon Creators API (With OAuth 2.0 &amp; Credential-less)

544.7k](/packages/jakiboy-apaapi)

PHPackages © 2026

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