Download the PHP package shopify/shopify-api without Composer
On this page you can find all versions of the php package shopify/shopify-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package shopify-api
Note: We've released a new experimental package for PHP. Please read rethinking our support for PHP & Python packages. The new PHP package supports the latest Shopify platform features and we'd love your feedback. Please see shopify-app-php to get started.
Shopify API Library for PHP
This library provides support for PHP Shopify apps to access the Shopify Admin API, by making it easier to perform the following actions:
- Creating online or offline access tokens for the Admin API via OAuth
- Making requests to the REST API
- Making requests to the GraphQL API
- Registering/processing webhooks
In addition to the Admin API, this library also allows querying the Storefront API.
This library can be used in any application that has a PHP backend, since it doesn't rely on any specific framework—you can include it alongside your preferred stack and only use the features that you need to build your app.
Requirements
To follow these usage guides, you will need to:
- have a basic understanding of PHP
- have a Shopify Partner account and development store
- OR have a test store where you can create a private app
- have a private or custom app already set up in your test store or partner account
- use ngrok, in order to create a secure tunnel to your app running on your localhost
- add the
ngrokURL and the appropriate redirect for your OAuth callback route to your app settings
Getting started
You can follow our getting started guide to learn how to use this library's components.
- Getting started
- Install dependencies
- Set up the library
- Performing OAuth
- Begin OAuth
- OAuth callback
- REST Admin API
- Make a GraphQL API call
- Make a Storefront API call
- Webhooks
- Utilities
- Known issues and caveats
- Notes on session handling
Developing this library
After cloning the repository, composer can install the dependencies:
To run tests:
If you want to get a code coverage report from the tests, you'll need to install the php-xdebug extension by running pecl install xdebug, and then run:
You may have to clear composer's autoload cache when namespaces change:
To run linter:
After having modified the composer.json file, make sure to run:
All versions of shopify-api with dependencies
ext-ctype Version *
ext-hash Version *
ext-json Version *
ext-mbstring Version *
doctrine/inflector Version ^2.0
firebase/php-jwt Version ^7.0
guzzlehttp/guzzle Version ^7.0
guzzlehttp/psr7 Version ^2.0
psr/http-client Version ^1.0
psr/http-message Version ^1.0 || ^2.0
psr/log Version ^1.1 || ^2.0 || ^3.0
ramsey/uuid Version ^4.1