PHPackages                             ecomlogic/mws-sdk - 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. ecomlogic/mws-sdk

ActiveLibrary[API Development](/categories/api)

ecomlogic/mws-sdk
=================

Amazon MWS Orders PHP API client

v1.0.3(8y ago)03.7kMITPHPPHP &gt;=5.3

Since Jun 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/gwinn/mws-sdk)[ Packagist](https://packagist.org/packages/ecomlogic/mws-sdk)[ Docs](http://github.com/gwinn/mws-sdk)[ RSS](/packages/ecomlogic-mws-sdk/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)DependenciesVersions (4)Used By (0)

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

Popularity19

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

3254d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9480ae3e02fe02707d65e603c0fd4216bec819a8b291cc1952bcf345ef8f40e2?d=identicon)[gwinn](/maintainers/gwinn)

---

Tags

apiamazonmws

### Embed Badge

![Health badge](/badges/ecomlogic-mws-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/ecomlogic-mws-sdk/health.svg)](https://phpackages.com/packages/ecomlogic-mws-sdk)
```

###  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)[thiagomarini/amazon-mws-client

PHP client for Amazon MWS API

151.4k](/packages/thiagomarini-amazon-mws-client)

PHPackages © 2026

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