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

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

tonchik-tm/shopify-api
======================

Shopify API Library for PHP

v1.0.2(4y ago)05MITPHPPHP ^7.3 || ^7.4 || ^8.0 || ^8.1

Since Mar 24Pushed 4y agoCompare

[ Source](https://github.com/tonchik-tm/shopify-php-api)[ Packagist](https://packagist.org/packages/tonchik-tm/shopify-api)[ RSS](/packages/tonchik-tm-shopify-api/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (8)Versions (15)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/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

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity69

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 ~50 days

Recently: every ~75 days

Total

7

Last Release

1589d ago

Major Versions

0.0.2-alpha → v1.0.02021-08-09

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

v1.0.0PHP ^7.3 || ^8.0

v1.0.2PHP ^7.3 || ^7.4 || ^8.0 || ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b86771accebc850e1b49aac1a9adec5a045ee5a5a342de519e6948ee3e7fac8?d=identicon)[tonchik-tm](/maintainers/tonchik-tm)

---

Top Contributors

[![Paulinakhew](https://avatars.githubusercontent.com/u/40904028?v=4)](https://github.com/Paulinakhew "Paulinakhew (95 commits)")[![paulomarg](https://avatars.githubusercontent.com/u/64600052?v=4)](https://github.com/paulomarg "paulomarg (95 commits)")[![carmelal](https://avatars.githubusercontent.com/u/54586536?v=4)](https://github.com/carmelal "carmelal (10 commits)")[![dersam](https://avatars.githubusercontent.com/u/475851?v=4)](https://github.com/dersam "dersam (5 commits)")[![andyw8](https://avatars.githubusercontent.com/u/13400?v=4)](https://github.com/andyw8 "andyw8 (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 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)")[![tonchik-tm](https://avatars.githubusercontent.com/u/2989751?v=4)](https://github.com/tonchik-tm "tonchik-tm (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)")

---

Tags

jwtrestgraphqlwebhookappnodeshopifyadmin apiStorefront API

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[shopify/shopify-api

Shopify API Library for PHP

4655.4M22](/packages/shopify-shopify-api)[laravel/framework

The Laravel Framework.

34.8k543.8M19.9k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k13](/packages/tempest-framework)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k40](/packages/civicrm-civicrm-core)[sylius/sylius

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

8.5k5.9M733](/packages/sylius-sylius)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)

PHPackages © 2026

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