PHPackages                             stephane888/shopify-api - 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. stephane888/shopify-api

ActiveLibrary[API Development](/categories/api)

stephane888/shopify-api
=======================

Shopify API Library for PHP

0162PHPCI passing

Since Nov 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/stephane888/shopify-api-php)[ Packagist](https://packagist.org/packages/stephane888/shopify-api)[ RSS](/packages/stephane888-shopify-api/feed)WikiDiscussions 1x Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (2)

Shopify API Library for PHP
===========================

[](#shopify-api-library-for-php)

[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE)

This library provides support for PHP [Shopify](https://www.shopify.com) apps to access the [Shopify Admin API](https://shopify.dev/docs/admin-api), by making it easier to perform the following actions:

- Creating [online](https://shopify.dev/concepts/about-apis/authentication#online-access) or [offline](https://shopify.dev/concepts/about-apis/authentication#offline-access) access tokens for the Admin API via OAuth
- Making requests to the [REST API](https://shopify.dev/docs/admin-api/rest/reference)
- Making requests to the [GraphQL API](https://shopify.dev/docs/admin-api/graphql/reference)
- Registering/processing webhooks

In addition to the Admin API, this library also allows querying the [Storefront API](https://shopify.dev/docs/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
============

[](#requirements)

To follow these usage guides, you will need to:

- have a basic understanding of [PHP](https://php.net)
- 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](https://ngrok.com), in order to create a secure tunnel to your app running on your localhost
- add the `ngrok` URL and the appropriate redirect for your OAuth callback route to your app settings

Getting started
===============

[](#getting-started)

You can follow our [getting started guide](docs/) to learn how to use this library's components.

- [Getting started](docs/getting_started.md)
    - [Install dependencies](docs/getting_started.md#install-dependencies)
    - [Set up the library](docs/getting_started.md#set-up-the-library)
- [Performing OAuth](docs/usage/oauth.md)
    - [Begin OAuth](docs/usage/oauth.md#begin-oauth)
    - [OAuth callback](docs/usage/oauth.md#oauth-callback)
- [REST Admin API](docs/usage/rest.md)
- [Make a GraphQL API call](docs/usage/graphql.md)
- [Make a Storefront API call](docs/usage/storefront.md)
- [Webhooks](docs/usage/webhooks.md)
- [Utilities](docs/usage/utils.md)
- [Known issues and caveats](docs/issues.md)
    - [Notes on session handling](docs/issues.md#notes-on-session-handling)

Developing this library
=======================

[](#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=]

```

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

```
composer dump-autoload

```

To run linter:

```
composer lint

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1abfc60b8ba2e889a5f46dcc43dacd547b97d513cee98f2789484db64e6091f6?d=identicon)[Stephanekouwa](/maintainers/Stephanekouwa)

---

Top Contributors

[![paulomarg](https://avatars.githubusercontent.com/u/64600052?v=4)](https://github.com/paulomarg "paulomarg (147 commits)")[![Paulinakhew](https://avatars.githubusercontent.com/u/40904028?v=4)](https://github.com/Paulinakhew "Paulinakhew (95 commits)")[![mkevinosullivan](https://avatars.githubusercontent.com/u/56687600?v=4)](https://github.com/mkevinosullivan "mkevinosullivan (15 commits)")[![carmelal](https://avatars.githubusercontent.com/u/54586536?v=4)](https://github.com/carmelal "carmelal (10 commits)")[![andershagbard](https://avatars.githubusercontent.com/u/9662430?v=4)](https://github.com/andershagbard "andershagbard (7 commits)")[![andyw8](https://avatars.githubusercontent.com/u/13400?v=4)](https://github.com/andyw8 "andyw8 (7 commits)")[![dersam](https://avatars.githubusercontent.com/u/475851?v=4)](https://github.com/dersam "dersam (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![klenotiw](https://avatars.githubusercontent.com/u/54754550?v=4)](https://github.com/klenotiw "klenotiw (4 commits)")[![stephane888](https://avatars.githubusercontent.com/u/23379351?v=4)](https://github.com/stephane888 "stephane888 (3 commits)")[![tanema](https://avatars.githubusercontent.com/u/463193?v=4)](https://github.com/tanema "tanema (2 commits)")[![thecodepixi](https://avatars.githubusercontent.com/u/16492325?v=4)](https://github.com/thecodepixi "thecodepixi (2 commits)")[![JaKXz](https://avatars.githubusercontent.com/u/2642545?v=4)](https://github.com/JaKXz "JaKXz (2 commits)")[![VladimirCyberDev](https://avatars.githubusercontent.com/u/87959398?v=4)](https://github.com/VladimirCyberDev "VladimirCyberDev (1 commits)")[![connor11528](https://avatars.githubusercontent.com/u/3578908?v=4)](https://github.com/connor11528 "connor11528 (1 commits)")[![cursedcoder](https://avatars.githubusercontent.com/u/899452?v=4)](https://github.com/cursedcoder "cursedcoder (1 commits)")[![VladimirCatrici](https://avatars.githubusercontent.com/u/2182381?v=4)](https://github.com/VladimirCatrici "VladimirCatrici (1 commits)")[![abekdwight](https://avatars.githubusercontent.com/u/30901083?v=4)](https://github.com/abekdwight "abekdwight (1 commits)")

### Embed Badge

![Health badge](/badges/stephane888-shopify-api/health.svg)

```
[![Health](https://phpackages.com/badges/stephane888-shopify-api/health.svg)](https://phpackages.com/packages/stephane888-shopify-api)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
