PHPackages                             kevinbrk/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. [HTTP &amp; Networking](/categories/http)
4. /
5. kevinbrk/shopify-api

ActiveLibrary[HTTP &amp; Networking](/categories/http)

kevinbrk/shopify-api
====================

Shopify API Library for PHP

v5.1.0(2y ago)07MITPHPPHP ~8.0.0 || ~8.1.0 || ~8.2.0

Since Apr 30Pushed 1y agoCompare

[ Source](https://github.com/KevinBrk/shopify-api-php)[ Packagist](https://packagist.org/packages/kevinbrk/shopify-api)[ RSS](/packages/kevinbrk-shopify-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (13)Versions (24)Used By (0)

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/api/admin), by making it easier to perform the following actions:

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

In addition to the Admin API, this library also allows querying the [Storefront API](https://shopify.dev/docs/api/storefront).

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

33

—

LowBetter than 75% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity74

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~39 days

Recently: every ~19 days

Total

22

Last Release

1019d ago

Major Versions

0.0.2-alpha → v1.0.02021-08-09

v1.0.1 → v2.0.02022-04-04

v2.0.1 → v3.0.02022-07-04

v3.2.1 → v4.0.02022-10-04

v4.3.0 → v5.0.02023-05-10

PHP version history (4 changes)0.0.1PHP &gt;=8.0

v1.0.0PHP ^7.3 || ^8.0

v2.0.0PHP ^7.4 || ^8.0 || ^8.1

v5.0.0PHP ~8.0.0 || ~8.1.0 || ~8.2.0

### Community

Maintainers

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

---

Top Contributors

[![paulomarg](https://avatars.githubusercontent.com/u/64600052?v=4)](https://github.com/paulomarg "paulomarg (160 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 (19 commits)")[![carmelal](https://avatars.githubusercontent.com/u/54586536?v=4)](https://github.com/carmelal "carmelal (10 commits)")[![andyw8](https://avatars.githubusercontent.com/u/13400?v=4)](https://github.com/andyw8 "andyw8 (7 commits)")[![andershagbard](https://avatars.githubusercontent.com/u/9662430?v=4)](https://github.com/andershagbard "andershagbard (7 commits)")[![uliandim](https://avatars.githubusercontent.com/u/9256324?v=4)](https://github.com/uliandim "uliandim (6 commits)")[![klenotiw](https://avatars.githubusercontent.com/u/54754550?v=4)](https://github.com/klenotiw "klenotiw (6 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)")[![renkai9418](https://avatars.githubusercontent.com/u/211438180?v=4)](https://github.com/renkai9418 "renkai9418 (3 commits)")[![JaKXz](https://avatars.githubusercontent.com/u/2642545?v=4)](https://github.com/JaKXz "JaKXz (2 commits)")[![thecodepixi](https://avatars.githubusercontent.com/u/16492325?v=4)](https://github.com/thecodepixi "thecodepixi (2 commits)")[![tanema](https://avatars.githubusercontent.com/u/463193?v=4)](https://github.com/tanema "tanema (2 commits)")[![yuliandimitrov](https://avatars.githubusercontent.com/u/70013538?v=4)](https://github.com/yuliandimitrov "yuliandimitrov (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)")[![VladimirCyberDev](https://avatars.githubusercontent.com/u/87959398?v=4)](https://github.com/VladimirCyberDev "VladimirCyberDev (1 commits)")[![abekdwight](https://avatars.githubusercontent.com/u/30901083?v=4)](https://github.com/abekdwight "abekdwight (1 commits)")

---

Tags

jwtrestgraphqlwebhookappnodeshopifyadmin apiStorefront API

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[shopify/shopify-api

Shopify API Library for PHP

4634.8M16](/packages/shopify-shopify-api)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[api-platform/metadata

API Resource-oriented metadata attributes and factories

223.5M96](/packages/api-platform-metadata)[gnikyt/basic-shopify-api

A basic Shopify API wrapper with REST and GraphQL support, powered by Guzzle.

245514.8k5](/packages/gnikyt-basic-shopify-api)

PHPackages © 2026

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