PHP code example of sellerworks / amazon-mws
1. Go to this page and download the library: Download sellerworks/amazon-mws library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sellerworks / amazon-mws example snippets
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)) {