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

ActiveLibrary[API Development](/categories/api)

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.

1.4.2(8y ago)255122.3k↓40.5%226[14 issues](https://github.com/CPIGroup/phpAmazonMWS/issues)[2 PRs](https://github.com/CPIGroup/phpAmazonMWS/pulls)2Apache-2.0PHPPHP &gt;=5.4

Since Feb 12Pushed 5y ago38 watchersCompare

[ Source](https://github.com/CPIGroup/phpAmazonMWS)[ Packagist](https://packagist.org/packages/cpigroup/php-amazon-mws)[ RSS](/packages/cpigroup-php-amazon-mws/feed)WikiDiscussions stable Synced 1mo ago

READMEChangelog (7)Dependencies (1)Versions (9)Used By (2)

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

[](#phpamazonmws)

[![Build Status](https://camo.githubusercontent.com/188bfe6f61ba014e6c2e0a2de7fff20e5e76b4c11d2c34710191ac0d4f7a5123/68747470733a2f2f7472617669732d63692e6f72672f43504947726f75702f706870416d617a6f6e4d57532e7376673f6272616e63683d737461626c65)](https://travis-ci.org/CPIGroup/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

44

—

FairBetter than 92% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity52

Moderate usage in the ecosystem

Community31

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 85.8% 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 ~247 days

Recently: every ~181 days

Total

7

Last Release

2994d ago

PHP version history (2 changes)1.0.0PHP ~5.4

1.3.0PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/693218c4f5be26ce2c9189c5312ba07f5197a22733eedc2db5b1086c33160b84?d=identicon)[cpigroup](/maintainers/cpigroup)

---

Top Contributors

[![Peardian](https://avatars.githubusercontent.com/u/2624085?v=4)](https://github.com/Peardian "Peardian (175 commits)")[![carl689](https://avatars.githubusercontent.com/u/619419?v=4)](https://github.com/carl689 "carl689 (24 commits)")[![oyucekaya](https://avatars.githubusercontent.com/u/10419329?v=4)](https://github.com/oyucekaya "oyucekaya (2 commits)")[![benallfree](https://avatars.githubusercontent.com/u/1068356?v=4)](https://github.com/benallfree "benallfree (1 commits)")[![linspb](https://avatars.githubusercontent.com/u/1993447?v=4)](https://github.com/linspb "linspb (1 commits)")[![luigel](https://avatars.githubusercontent.com/u/26235960?v=4)](https://github.com/luigel "luigel (1 commits)")

---

Tags

phpapiamazon

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[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)[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)

543.8k](/packages/jakiboy-apaapi)

PHPackages © 2026

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