PHPackages                             r.kozin/mws-orders - 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/mws-orders

ActiveLibrary[API Development](/categories/api)

r.kozin/mws-orders
==================

PHP MWS Orders SDK

v1.11(7y ago)029MITPHP

Since Sep 5Pushed 7y agoCompare

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

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

Community2

Small or concentrated contributor base

Maturity69

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

12

Last Release

2801d ago

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/rkozin-mws-orders/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M474](/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.8M186](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M33](/packages/facebook-php-business-sdk)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M95](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

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