PHPackages                             r.kozin/php-mws-products-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. r.kozin/php-mws-products-sdk

ActiveLibrary[API Development](/categories/api)

r.kozin/php-mws-products-sdk
============================

MWS SDK for PHP

v1.2(7y ago)033MITPHP

Since Sep 6Pushed 7y agoCompare

[ Source](https://github.com/ITProsteercom/php-mws-products-sdk)[ Packagist](https://packagist.org/packages/r.kozin/php-mws-products-sdk)[ RSS](/packages/rkozin-php-mws-products-sdk/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (7)DependenciesVersions (9)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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity67

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

Total

8

Last Release

2795d ago

### Community

Maintainers

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

---

Top Contributors

[![ITProsteercom](https://avatars.githubusercontent.com/u/34856940?v=4)](https://github.com/ITProsteercom "ITProsteercom (1 commits)")

### Embed Badge

![Health badge](/badges/rkozin-php-mws-products-sdk/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M452](/packages/google-gax)

PHPackages © 2026

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