PHPackages                             gersonfs/sellercenter-sdk-php - 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. gersonfs/sellercenter-sdk-php

ActiveLibrary[API Development](/categories/api)

gersonfs/sellercenter-sdk-php
=============================

SellerCenter SDK for PHP

2.0.1(1y ago)02.0k—0%MITPHPPHP &gt;=8.1CI passing

Since Jul 28Pushed 1y agoCompare

[ Source](https://github.com/gersonfs/seller-center-sdk-php)[ Packagist](https://packagist.org/packages/gersonfs/sellercenter-sdk-php)[ RSS](/packages/gersonfs-sellercenter-sdk-php/feed)WikiDiscussions master Synced 1mo ago

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

1) Requirements
---------------

[](#1-requirements)

PHP 8.1 and later.

### Composer

[](#composer)

You can install the sdk via [Composer](http://getcomposer.org/). Run the following command:

```
composer require rocket-labs/sellercenter-sdk-php
```

To use the sdk code, use Composer's [autoload](https://getcomposer.org/doc/00-intro.md#autoloading):

```
require_once('vendor/autoload.php');
```

2) Implemented methods
----------------------

[](#2-implemented-methods)

These methods can be accessed through `RocketLabs\SellerCenterSdk\Endpoint\Endpoints` class:

- Order endpoint - `Endpoints::order()`
    - GetOrders
    - GetOrder
    - GetDocument
    - GetOrderItems
    - SetStatusToCanceled
    - SetStatusToPackedByMarketplace
    - SetStatusToReadyToShip

All another methods you can call with `GenericRequest`, for more information please look at [this sample](samples/genericGetter.php) for GET-methods or [this one](samples/genericPost.php) for POST-methods.

3) Samples
----------

[](#3-samples)

To understand how to work with the SDK, please look at [samples](samples/). To make the samples work, change the API settings in [samples/config/config.php](samples/config/config.php). You need to set up the SellerCenter URL (only https is supported), your login and API key.

> **API key** can be found in your SellerCenter account under Settings &gt; Manage Users. If a given user has no API key yet, generate it by clicking a corresponding link.

After this you can run any sample and see the real results requests.

> **Please note**, that POST requests could affect on your real products, orders etc. Make sure that SKUs or Order IDs in samples are not intersect with data in your SellerCenter account.

### 3.1) Generic Samples

[](#31-generic-samples)

You can access every API Method by using the GenericRequest class and the core implementation.

**see sample in action**

```
cd samples
php ./genericGetter.php
```

### 3.1) Endpoints Samples

[](#31-endpoints-samples)

For the most important API endpoints the SDK provides facades for simple API usage. See [endpoint samples here](samples/endpoint/).

The following code describes the pattern how to use the endpoints implementation:

```
