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

ActiveLibrary

thebinoculars/amazon-sp
=======================

Guzzle client for Amazon SP API

v1.0(9mo ago)00MITPHPPHP ^7.2.5

Since Aug 8Pushed 9mo ago1 watchersCompare

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

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

[![Packagist Version](https://camo.githubusercontent.com/b897c27f2ded1705f71cac43ebfa8febb5f358732956936e8043db98e129f1d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74686562696e6f63756c6172732f616d617a6f6e2d7370)](https://camo.githubusercontent.com/b897c27f2ded1705f71cac43ebfa8febb5f358732956936e8043db98e129f1d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74686562696e6f63756c6172732f616d617a6f6e2d7370)

Amazon SP Guzzle
================

[](#amazon-sp-guzzle)

Guzzle client for Amazon SP API

Installation
------------

[](#installation)

```
composer require thebinoculars/amazon-sp
```

Usage
-----

[](#usage)

- Setup

```
use TheBinoculars\AmazonSP\Services\AmazonSPService;

$service = new AmazonSPService();

$service->setRegion('us-west-2')

$service->setAccessToken('XXX');
// or
$service->setRefreshToken('XXX');
```

- Sample request

```
$response = $service->sendRequest('GET', '/catalog/v0/items', [
    'headers' => [
        'content-type' => 'application/json; charset=utf-8',
    ],
    'query' => [
        'MarketplaceId' => 'A1VC38T7YXB528',
        'Query' => 'book',
    ],
]);

$service->handleError($response);

return $response;
```

- Sample feed

```
$content =
'

		1.01
		A1VC38T7YXB528

	Inventory

		1923452925
		Update

			XXX
			10

';

// Step 1
$feedPayload = $service->createFeedDocument();

// Step 2
$service->encryptAndUploadFeedData($feedPayload, $content);

// Step 3
$feedId = $service->createFeed([
    'feedType' => 'POST_INVENTORY_AVAILABILITY_DATA',
    'marketplaceIds' => ['A1VC38T7YXB528'],
    'inputFeedDocumentId' => $feedPayload->feedDocumentId,
]);

// Step 4
$feedDocumentId = $service->confirmFeedProcessing($feedId);

// Step 5
$documentPayload = $service->getFeedDocument($feedDocumentId);

// Step 6
return $service->downloadAndDecryptFeedData($documentPayload);
```

- Sample report

```
// Step 1
$reportId = $service->requestReport([
    'reportType' => 'GET_FLAT_FILE_OPEN_LISTINGS_DATA',
    'marketplaceIds' => ['A1VC38T7YXB528'],
    'dataStartTime' => now()->sub(30, 'days')->format('Y-m-d\\TH:i:s\\Z'),
    'dataEndTime' => now()->format('Y-m-d\\TH:i:s\\Z'),
    'reportOptions' => [
        'ShowSalesChannel' => true,
    ],
]);

// Step 2
$reportPayload = $service->confirmReportProcessing($reportId);

// Step 3
$documentPayload = $service->retrieveReportDocument($reportPayload->reportDocumentId);
$content = $service->downloadAndDecryptReportData($documentPayload);
$content = iconv('SJIS', 'utf-8', $content);

return $service->readCSVContent(str_replace("\t", ',', $content));
```

- You can publish config by running

```
php artisan vendor:publish --tag=amazon-sp
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance57

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

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

Unknown

Total

1

Last Release

280d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/468cfb359db0d06315ca2df3c49c02e11a34d1331ac12faca9125f2c6a09dd75?d=identicon)[thebinoculars](/maintainers/thebinoculars)

---

Tags

amazon

### Embed Badge

![Health badge](/badges/thebinoculars-amazon-sp/health.svg)

```
[![Health](https://phpackages.com/badges/thebinoculars-amazon-sp/health.svg)](https://phpackages.com/packages/thebinoculars-amazon-sp)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k511.3M2.2k](/packages/aws-aws-sdk-php)[jlevers/selling-partner-api

PHP client for Amazon's Selling Partner API

4295.2M1](/packages/jlevers-selling-partner-api)[thewirecutter/paapi5-php-sdk

ProductAdvertisingAPI 5.0 PHP SDK

671.8M5](/packages/thewirecutter-paapi5-php-sdk)[revolution/laravel-amazon-product-api

Amazon Product Advertising API for Laravel

7950.2k](/packages/revolution-laravel-amazon-product-api)[looxis/laravel-amazon-mws

Simple Amazon MWS API Package for Laravel

3218.7k](/packages/looxis-laravel-amazon-mws)[okamos/php-ses

An Amazon SES api for PHP. Support signature version 4

2220.8k](/packages/okamos-php-ses)

PHPackages © 2026

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