{"id":35014060,"url":"https://github.com/shoppingflux/php-sdk","last_synced_at":"2026-01-07T18:11:58.851Z","repository":{"id":31841545,"uuid":"122956676","full_name":"shoppingflux/php-sdk","owner":"shoppingflux","description":"Shopping-feed PHP SDK to ease our API integration in your application","archived":false,"fork":false,"pushed_at":"2025-03-12T14:32:06.000Z","size":529,"stargazers_count":4,"open_issues_count":5,"forks_count":13,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-08-23T09:54:59.485Z","etag":null,"topics":["api-client","library","php","php-sdk","sdk"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shoppingflux.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-26T10:53:52.000Z","updated_at":"2025-03-12T14:31:40.000Z","dependencies_parsed_at":"2023-11-23T14:31:25.237Z","dependency_job_id":"c4d7d409-b143-452f-9704-25ddc2b06842","html_url":"https://github.com/shoppingflux/php-sdk","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/shoppingflux/php-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoppingflux%2Fphp-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoppingflux%2Fphp-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoppingflux%2Fphp-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoppingflux%2Fphp-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shoppingflux","download_url":"https://codeload.github.com/shoppingflux/php-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoppingflux%2Fphp-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28072763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-27T02:00:05.897Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-client","library","php","php-sdk","sdk"],"created_at":"2025-12-27T05:10:29.718Z","updated_at":"2025-12-27T05:10:32.145Z","avatar_url":"https://github.com/shoppingflux.png","language":"PHP","readme":"# Welcome to the Shopping Feed PHP SDK\n\n## Install\n\n1. In your project root repository run \n    ```bash\n    composer require shoppingfeed/php-sdk\n    ```\n2. Install a http client of your choice, we recommend using GuzzleHttp 6 as the SDK embed an adapter for this client.\n    ```bash\n    composer require guzzlehttp/guzzle ^6.3\n    ```\n    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).\n\nThis will load the SDK library into the `vendor` repository.  \nAnd thanks to PSR-4 specification you should be able to access the SDK under the namespace `\\ShoppingFeed\\Sdk`.\n\n## Basic usage\n\nHere are the three basic steps to use the SDK :\n1. Authentication to start a new session\n2. Retrieve the store(s) you want to manage from the session\n3. Manage resources\n\n### Authentication against the API\n\nThe Shopping Feed API requires that you are authenticated to perform any calls.\n\nIn order to make authenticated call, you should build the client like so:\n\n```php\n\u003c?php\nnamespace ShoppingFeed\\Sdk;\n\n// Setup credentials to connect to the API, and create session\n$credential = new Credential\\Token('api-token');\n/** @var \\ShoppingFeed\\Sdk\\Api\\Session\\SessionResource $session */\n$session = Client\\Client::createSession($credential);\n```\n\n### Accessing your stores\n\n```php\n/** @var \\ShoppingFeed\\Sdk\\Api\\Session\\SessionResource $session */\n$store = $session-\u003eselectStore(1276);\n$store-\u003egetName(); // test-store\n$store-\u003egetId(); // 1276\n// ... and so on\n```\n\nIf you manage more than one store, you can use the store collection object\n\n```php\n/** @var \\ShoppingFeed\\Sdk\\Api\\Session\\SessionResource $session */\n// Get store collection\n$stores = $session-\u003egetStores();\n// Count the number of stores [int]\n$stores-\u003ecount();\n// Get a particular store\n$store = $stores-\u003eselect('id-or-store-name');\n// Loop over available stores\nforeach ($stores as $store) {\n    $store-\u003egetName(); \n}\n```\n\n### SDK guides\n\n- [Authentication in details](docs/manual/authenticate.md)\n- [Error handling and debug](docs/manual/error-handling.md)\n\n### SDK resources documentation\n\n- [Inventory management](docs/manual/resources/inventory.md)\n- [Order management](docs/manual/resources/order.md)\n- [Pricing management](docs/manual/resources/pricing.md)\n- [Ticket management](docs/manual/resources/ticket.md)\n\n\n### Generates XML compliant feed for import\n\nThe SDK is able to simplify XML feed creation by providing necessary tools.\n\nCheck the documentation at https://github.com/shoppingflux/php-feed-generator to learn how to create compliant feed.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshoppingflux%2Fphp-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshoppingflux%2Fphp-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshoppingflux%2Fphp-sdk/lists"}