{"id":37264977,"url":"https://github.com/jasara/laravel-selling-partner-api","last_synced_at":"2026-01-16T00:03:01.730Z","repository":{"id":56996702,"uuid":"410831848","full_name":"jasara/laravel-selling-partner-api","owner":"jasara","description":"Laravel wrapper for Amazon's Selling Partner API SDK","archived":false,"fork":false,"pushed_at":"2024-09-09T20:23:31.000Z","size":41,"stargazers_count":9,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-14T14:43:07.935Z","etag":null,"topics":["amazon","laravel","mws","selling-partner-api","selling-partner-api-sdk"],"latest_commit_sha":null,"homepage":"https://phpspa.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jasara.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":"jasara"}},"created_at":"2021-09-27T10:03:11.000Z","updated_at":"2025-07-15T15:14:25.000Z","dependencies_parsed_at":"2024-08-08T11:32:28.346Z","dependency_job_id":null,"html_url":"https://github.com/jasara/laravel-selling-partner-api","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.0714285714285714,"last_synced_commit":"d057691006c19637586782298428749e313fdec3"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":"spatie/package-skeleton-laravel","purl":"pkg:github/jasara/laravel-selling-partner-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasara%2Flaravel-selling-partner-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasara%2Flaravel-selling-partner-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasara%2Flaravel-selling-partner-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasara%2Flaravel-selling-partner-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasara","download_url":"https://codeload.github.com/jasara/laravel-selling-partner-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasara%2Flaravel-selling-partner-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28474210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T22:27:41.514Z","status":"ssl_error","status_checked_at":"2026-01-15T21:54:47.910Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["amazon","laravel","mws","selling-partner-api","selling-partner-api-sdk"],"created_at":"2026-01-16T00:03:00.962Z","updated_at":"2026-01-16T00:03:01.714Z","avatar_url":"https://github.com/jasara.png","language":"PHP","funding_links":["https://github.com/sponsors/jasara"],"categories":[],"sub_categories":[],"readme":"#  Laravel wrapper for Amazon's Selling Partner API SDK \n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/jasara/laravel-selling-partner-api.svg?style=flat-square)](https://packagist.org/packages/jasara/laravel-selling-partner-api)\n[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/jasara/laravel-selling-partner-api/run-tests.yml?branch=main\u0026label=tests)](https://github.com/jasara/laravel-selling-partner-api/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![Code coverage](https://raw.githubusercontent.com/jasara/laravel-selling-partner-api/main/.github/coverage.svg)](https://github.com/jasara/laravel-selling-partner-api)\n[![Total Downloads](https://img.shields.io/packagist/dt/jasara/laravel-selling-partner-api.svg?style=flat-square)](https://packagist.org/packages/jasara/laravel-selling-partner-api)\n\nThis package is a Laravel wrapper around [Jasara's PHP SDK for Amazon's Selling Partner API](https://github.com/jasara/php-amzn-selling-partner-api). \n\n## License\n\nWhile this package has an [MIT license](LICENSE.md), the core PHP SDK package is not commercially licensed. If you are using this package commerically, please see the [licensing section](https://github.com/jasara/php-amzn-selling-partner-api#license) of the core PHP SDK package.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require jasara/laravel-selling-partner-api\n```\n\nYou can publish the config file with:\n```bash\nphp artisan vendor:publish --provider=\"Jasara\\LaravelAmznSPA\\LaravelAmznSPAServiceProvider\" --tag=\"laravel-selling-partner-api-config\"\n```\n\nThis is the contents of the published config file:\n\n```php\nreturn [\n    'marketplace_id' =\u003e env('AMZN_SPA_MARKETPLACE_ID'),\n    'application_id' =\u003e env('AMZN_SPA_APPLICATION_ID'),\n    'redirect_url' =\u003e env('AMZN_SPA_REDIRECT_URL'),\n    'use_test_endpoints' =\u003e env('AMZN_SPA_USE_TEST_ENDPOINTS'),\n    'aws_access_key' =\u003e env('AMZN_SPA_AWS_ACCESS_KEY'),\n    'aws_secret_key' =\u003e env('AMZN_SPA_AWS_SECRET_KEY'),\n    'lwa_client_id' =\u003e env('AMZN_SPA_LWA_CLIENT_ID'),\n    'lwa_client_secret' =\u003e env('AMZN_SPA_LWA_CLIENT_SECRET'),\n];\n```\n\n## Usage\n\nFor full usage information, see the [documentation website](https://phpspa.com/).\n\nIn this Laravel wrapper, the underlying library will be automatically configured when you set the following environment variables:\n\n```\nAMZN_SPA_MARKETPLACE_ID=ATVPDKIKX0DER\nAMZN_SPA_APPLICATION_ID=amzn1.sellerapps.app.appid-1234-5678-a1b2-a1b2c3d4e5f6\nAMZN_SPA_REDIRECT_URL=yourapp.com/amazon/oauth/redirect\nAMZN_SPA_USE_TEST_ENDPOINTS=true\nAMZN_SPA_AWS_ACCESS_KEY=AKIASECRETKEY\nAMZN_SPA_AWS_SECRET_KEY=rf7x7rpjqq1tlcbbv2r9iahcmm6mluaqn8deitcl\nAMZN_SPA_LWA_CLIENT_ID=17r2r9iahcmm6mlubv2r9iahcmm6mluaqnlcbbv2r9iahiahcmm6mluaqn8de\nAMZN_SPA_LWA_CLIENT_SECRET=Atzr|1tlcbbv2r9iahcmm6mluaqn8d-secret\n```\n\nTo call the Amazon API, first instantiate the Laravel wrapper class, passing any configuration parameters (such as client authorization tokens) into the constructor.\n\n```php\n$amzn = new \\Jasara\\LaravelAmznSPA\\LaravelAmznSPA(\n    tokens: new \\Jasara\\AmznSPA\\DataTransferObjects\\AuthTokensDTO(\n        access_token: $access_token, // optional if there is a refresh token\n        expires_at: $expires_at, // optional, instance of CarbonImmutable\n        refresh_token: $refresh_token, // optional if there is an access token, Passing in the refresh token will automatically generate a new access token when needed\n    ),\n    http: $http, // instance of Illuminate\\Http\\Client\\Factory - if you would like to stub tests, you can pass in a faked HTTP instance\n    grantless_token: new \\Jasara\\AmznSPA\\DataTransferObjects\\GrantlessTokenDTO(\n        access_token: $access_token, // optional, a new token will be automatically generated if not passed in\n        expires_at: $expires_at, // optional, instance of CarbonImmutable\n    ),\n    marketplace_id: $marketplace_id, // e.g. ATVPDKIKX0DER\n);\n```\n\nYou can then call the underlying library resources directly, such as the [Notifications resource](https://phpspa.com/docs/resources/notifications/). The response is a data transfer object adhering to the Amazon schema.\n\n```php\n$amzn-\u003enotifications-\u003egetDestinations();\n$destination_id = $response-\u003epayload[0]-\u003edestination_id;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasara%2Flaravel-selling-partner-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasara%2Flaravel-selling-partner-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasara%2Flaravel-selling-partner-api/lists"}