Shopify / shopify-api-php

MIT License
369 stars 169 forks source link

Shopify API Library for PHP

License: MIT

This library provides support for PHP Shopify apps to access the Shopify Admin API, by making it easier to perform the following actions:

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:

Getting started

You can follow our getting started guide to learn how to use this library's components.

Developing this library

After cloning the repository, composer can install the dependencies:

composer install

To run tests:

composer test

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:

composer test -- [--coverage-text|--coverage-html=<path>]

You may have to clear composer's autoload cache when namespaces change:

composer dump-autoload

To run linter:

composer lint

After having modified the composer.json file, make sure to run:

composer validate
composer normalize