PHPackages                             alanaktion/amazon-sp - 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. alanaktion/amazon-sp

ActiveLibrary[API Development](/categories/api)

alanaktion/amazon-sp
====================

0.2.0(5y ago)0289proprietaryPHPPHP &gt;=5.5

Since Feb 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Alanaktion/amazon-sp)[ Packagist](https://packagist.org/packages/alanaktion/amazon-sp)[ RSS](/packages/alanaktion-amazon-sp/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

Amazon SP
=========

[](#amazon-sp)

The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.

This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- Orders API version: v0
- Feeds API version: 2020-09-04
- Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen For more information, please visit

To generate this package:

```
swagger-codegen generate -l php \
    -i https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/orders-api-model/ordersV0.json \
    --model-package Orders --invoker-package AmazonSP
swagger-codegen generate -l php \
    -i https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/feeds-api-model/feeds_2020-09-04.json \
    --model-package Feeds --invoker-package AmazonSP
```

If someone is actually using this for something that requires anything beyond the Orders API, it's fairly trivial to add additional endpoints, and I'll accept valid PRs.

Requirements
------------

[](#requirements)

PHP 5.5 and later

Installation &amp; Usage
------------------------

[](#installation--usage)

### Composer

[](#composer)

To install the bindings via [Composer](http://getcomposer.org/), add the following to `composer.json`:

```
{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/Alanaktion/amazon-sp.git"
    }
  ],
  "require": {
    "alanaktion/amazon-sp": "*@dev"
  }
}
```

Then run `composer install`

### Manual Installation

[](#manual-installation)

Download the files and include `autoload.php`:

```
require_once('/path/to/amazon-sp/vendor/autoload.php');
```

Tests
-----

[](#tests)

To run the unit tests:

```
composer install
./vendor/bin/phpunit
```

Getting Started
---------------

[](#getting-started)

Please follow the [installation procedure](#installation--usage) and then run the following:

```
