2017 © Pedro Peláez
 

library amazon-mws

A PHP client for the Amazon Marketplace Web Services (MWS) API

image

sellerworks/amazon-mws

A PHP client for the Amazon Marketplace Web Services (MWS) API

  • Friday, June 30, 2017
  • by snebes
  • Repository
  • 2 Watchers
  • 5 Stars
  • 359 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 3 Versions
  • 14 % Grown

The README.md

GitHub release Travis Packagist, (*1)

Amazon MWS Toolkit

The Amazon MWS Toolkit makes it easy for developers to access Amazon's Marketplace Webservices in their PHP code, and build robust applications using services like Orders, Fulfillment Inbound Shipment and Reports. You can get started in minutes by installing the toolkit through Composer or by downloading the latest release., (*2)

Currently this project is in BETA and not recommended for production use, but you can try it anyway. (I know you will!), (*3)

Resources

  • Toolkit Docs - For details about using this toolkit
  • API Docs - For details about operations, parameters, and responses

Installation

Through Composer, obviously:, (*4)

composer require sellerworks/amazon-mws

You can also use Amazon MWS Toolkit without using Composer by registering an autoloader function:, (*5)

spl_autoload_register(function($class) {
    $prefix = 'SellerWorks\\Amazon\\';

    if (!substr($class, 0, 18) === $prefix) {
        return;
    }

    $class = substr($class, strlen($prefix));
    $location = __DIR__ . 'path/to/sellerworks-amazon/src/' . str_replace('\\', '/', $class) . '.php';

    if (is_file($location)) {
        require_once($location);
    }
});

Now you're ready to get started., (*6)

Example

Get the service status., (*7)

<?php

require 'vendor/autoload.php';

use SellerWorks\Amazon\Credentials\Credentials;
use SellerWorks\Amazon\Orders\Client;

// Create the API client.
$credentials = new Credentials('Seller Id', 'Access Key', 'Secret Key');
$client = new Client($credentials);

// Send request to the API.
$status = $client->GetServiceStatus();

// Output service level information.
printf("The current service level for the Orders Service is: %s\n", $status->Status);

Project Goals

  • Be well maintained.
  • Be well documented.
  • Be well tested.

Enjoy!

The Versions

30/06 2017

7.1.x-dev

7.1.9999999.9999999-dev

A PHP client for the Amazon Marketplace Web Services (MWS) API

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

amazon mws sellercentral

26/08 2016

dev-master

9999999-dev

A PHP client for the Amazon Marketplace Web Services (MWS) API

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

amazon mws sellercentral

26/08 2016

v0.8.2

0.8.2.0

A PHP client for the Amazon Marketplace Web Services (MWS) API

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

amazon mws sellercentral