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

ActiveLibrary[API Development](/categories/api)

najamhaq/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.3.1(6y ago)010.4k1Apache-2.0PHPPHP &gt;=5.4CI failing

Since Feb 12Pushed 6y agoCompare

[ Source](https://github.com/najamhaq/phpAmazonMWS)[ Packagist](https://packagist.org/packages/najamhaq/php-amazon-mws)[ RSS](/packages/najamhaq-php-amazon-mws/feed)WikiDiscussions stable Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (9)Used By (0)

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

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 80.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 ~406 days

Recently: every ~488 days

Total

6

Last Release

2485d ago

PHP version history (2 changes)1.0.0PHP ~5.4

1.3.0-rc1PHP &gt;=5.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1304405?v=4)[Najam Haq](/maintainers/najamhaq)[@najamhaq](https://github.com/najamhaq)

---

Top Contributors

[![Peardian](https://avatars.githubusercontent.com/u/2624085?v=4)](https://github.com/Peardian "Peardian (166 commits)")[![carl689](https://avatars.githubusercontent.com/u/619419?v=4)](https://github.com/carl689 "carl689 (24 commits)")[![najamhaq](https://avatars.githubusercontent.com/u/1304405?v=4)](https://github.com/najamhaq "najamhaq (12 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)")

---

Tags

phpapiamazon

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/najamhaq-php-amazon-mws/health.svg)](https://phpackages.com/packages/najamhaq-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.

256123.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)
