PHPackages                             serzh/amazon-mws-products - 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. serzh/amazon-mws-products

ActiveLibrary

serzh/amazon-mws-products
=========================

Amazon Marketplace Web Service Products PHP Client Library

v1.0.5(6y ago)03661PHPPHP &gt;=5.4

Since Oct 10Pushed 6y ago2 watchersCompare

[ Source](https://github.com/SerzhEvtushenko/amazon-mws-products)[ Packagist](https://packagist.org/packages/serzh/amazon-mws-products)[ RSS](/packages/serzh-amazon-mws-products/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)DependenciesVersions (7)Used By (0)

Amazon Marketplace Web Service Products PHP Client Library
==========================================================

[](#amazon-marketplace-web-service-products-php-client-library)

Version: 2016-06-01

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

[](#installation)

```
 composer require serzh/amazon-mws-products

```

Enter your credentials
----------------------

[](#enter-your-credentials)

1. Open `/Samples/.config.inc.php`
2. Edit the following lines replacing the `` values with your credentials

    ```
    define('AWS_ACCESS_KEY_ID', '');
    define('AWS_SECRET_ACCESS_KEY', '');

    define('APPLICATION_NAME', '');
    define('APPLICATION_VERSION', '');

    define('MERCHANT_ID', ''); // If you are making calls on another seller's behalf, put their merchantID here.
    define('MARKETPLACE_ID', '');

    ```

Edit the samples
----------------

[](#edit-the-samples)

In the `/Samples` folder you will find files that correspond to a particular Amazon Marketplace Web Service (Amazon MWS) operation. These files serve as examples to illustrate the code required to make the call for that particular operation. We will be using the SubmitFeed operation from the Feeds API section as an example.

1. Open `/Samples/SubmitFeedSample.php`
2. Uncomment the appropriate `$serviceURL` for the marketplace that you want to sell in. Example:

    ```
    $serviceUrl = "https://mws.amazonservices.com";

    ```
3. Populate the `$feed` variable with the feed contents. Examples:

    ```
    // From a string
    $feed = "Feed content";

    // From a file
    $feed = file_get_contents("feed.txt");

    ```
4. Uncomment `$marketplaceIdArray` and fill the array with the MarketplaceId values that you want to submit the feed to.
5. Uncomment one of the two Amazon MWS request building methods between lines 126 - 170.
6. Uncomment the following lines:

    ```
    invokeSubmitFeed($service, $request);

    @fclose($feedHandle);

    ```
7. Start your server and navigate to the script's address to run it.

FAQ
===

[](#faq)

Why does cURL return `Error Response Status Code: 0`?
-----------------------------------------------------

[](#why-does-curl-return-error-response-status-code-0)

If you receive the error `Error Response Status Code: 0` from cURL when attempting to send a request to Amazon MWS using cURL, find and set `CURLOPT_SSL_VERIFYPEER` to `false`.

Why is FeedSubmissionResult being cut off?
------------------------------------------

[](#why-is-feedsubmissionresult-being-cut-off)

This occurs when the server response is saved to memory. To avoid this, save the response to a file.

```
$responseFile = fopen("response.xml", "w");
fwrite($responseFile, $dom->saveXML());
fclose($responseFile);

```

What is in the `/Mock` folder?
------------------------------

[](#what-is-in-the-mock-folder)

The mock folder contains canned responses that simulate an Amazon MWS response. Mock responses are useful for testing without actually sending a request to Amazon MWS.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

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

Recently: every ~108 days

Total

6

Last Release

2354d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/85b1235fffb2a91698a45ca38fbf559a10bd57f093e2f1b2b96cdb5cf1c4c767?d=identicon)[SerzhEvtushenko](/maintainers/SerzhEvtushenko)

---

Top Contributors

[![SerzhYevtushenko](https://avatars.githubusercontent.com/u/5663785?v=4)](https://github.com/SerzhYevtushenko "SerzhYevtushenko (4 commits)")[![creatissimo](https://avatars.githubusercontent.com/u/22854665?v=4)](https://github.com/creatissimo "creatissimo (2 commits)")[![sakalys](https://avatars.githubusercontent.com/u/6958886?v=4)](https://github.com/sakalys "sakalys (2 commits)")[![ygrenne](https://avatars.githubusercontent.com/u/13302032?v=4)](https://github.com/ygrenne "ygrenne (1 commits)")

### Embed Badge

![Health badge](/badges/serzh-amazon-mws-products/health.svg)

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

PHPackages © 2026

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