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

ActiveLibrary[API Development](/categories/api)

shoppingfeed/php-sdk
====================

Shopping Feed SDK to ease integration of our API

0.15.0(4mo ago)4233.2k↓49.9%13[5 issues](https://github.com/shoppingflux/php-sdk/issues)[1 PRs](https://github.com/shoppingflux/php-sdk/pulls)3Apache-2.0PHPPHP &gt;=8.0CI failing

Since Jun 7Pushed 4mo ago10 watchersCompare

[ Source](https://github.com/shoppingflux/php-sdk)[ Packagist](https://packagist.org/packages/shoppingfeed/php-sdk)[ RSS](/packages/shoppingfeed-php-sdk/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (7)Versions (53)Used By (3)

Welcome to the Shopping Feed PHP SDK
====================================

[](#welcome-to-the-shopping-feed-php-sdk)

Install
-------

[](#install)

1. In your project root repository run ```
    composer require shoppingfeed/php-sdk
    ```
2. Install a http client of your choice, we recommend using GuzzleHttp 6 as the SDK embed an adapter for this client. ```
    composer require guzzlehttp/guzzle ^6.3
    ```

    You can also develop your own adapter, if you already have a http client library in your project (see the [http adapter documentation](docs/development/http-adapter.md) for more information).

This will load the SDK library into the `vendor` repository.
And thanks to PSR-4 specification you should be able to access the SDK under the namespace `\ShoppingFeed\Sdk`.

Basic usage
-----------

[](#basic-usage)

Here are the three basic steps to use the SDK :

1. Authentication to start a new session
2. Retrieve the store(s) you want to manage from the session
3. Manage resources

### Authentication against the API

[](#authentication-against-the-api)

The Shopping Feed API requires that you are authenticated to perform any calls.

In order to make authenticated call, you should build the client like so:

```
