PHPackages                             oanhnn/shopify-php-sdk - 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. oanhnn/shopify-php-sdk

ActiveLibrary[API Development](/categories/api)

oanhnn/shopify-php-sdk
======================

An unofficial Shopify PHP SDK

18PHP

Since May 28Pushed 7y ago2 watchersCompare

[ Source](https://github.com/oanhnn/shopify-php-sdk)[ Packagist](https://packagist.org/packages/oanhnn/shopify-php-sdk)[ RSS](/packages/oanhnn-shopify-php-sdk/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Shopify PHP SDK
===============

[](#shopify-php-sdk)

[![Build Status](https://camo.githubusercontent.com/4b34ea94002726e5039ce244ab1d12497cda4c68682b26cd07de6062678205c8/68747470733a2f2f7472617669732d63692e6f72672f6f616e686e6e2f73686f706966792d7068702d73646b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/oanhnn/shopify-php-sdk)[![Coverage Status](https://camo.githubusercontent.com/0e7afd8e41a9070777f7470b3877e108408119b8f70b0d809e900ed5dfb3e082/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6f616e686e6e2f73686f706966792d7068702d73646b2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/oanhnn/shopify-php-sdk?branch=master)

Unoffical Shopify SDK for PHP

Requirements
------------

[](#requirements)

- php &gt;=7.1.3

Installation
------------

[](#installation)

Begin by pulling in the package through Composer.

```
$ composer require oanhnn/shopify-php-sdk php-http/guzzle6-adapter
```

Why `php-http/guzzle6-adapter`? We are decoupled from any HTTP messaging client with help by HTTPlug. You can find other HTTP messaging client implement `\Http\Client\HttpClient` in [here](https://packagist.org/providers/php-http/client-implementation).

Usage
-----

[](#usage)

```
$sdk = new ShopifySDK([
    'app_key' => getenv(static::APP_KEY_ENV_NAME),
    'app_secret' => getenv(static::APP_SECRET_ENV_NAME),
    'app_password' => getenv(static::APP_PASSWORD_ENV_NAME),
    'shop_domain' => 'your-store.myshopify.com',
    'http_client' => new \Http\Adapter\Guzzle6\Client(),
]);

// Make authorization url
$sdk->getAuthorizationUrl(
    'https://example.com/shopify',
    ['read_products', 'write_products'],
    ['state' => 'random-string']
);

// Get access token from code
$accessToken = $sdk->getAccessTokenFromCode(
    'https://example.com/shopify',
    $_GET['code']
);

// Get shop information
$shop = $sdk->setAccessToken($accessToken)->getClient()->get('/shop.json');
```

Changelog
---------

[](#changelog)

See all change logs in [CHANGELOG](CHANGELOG.md)

Testing
-------

[](#testing)

```
$ git clone git@github.com/oanhnn/shopify-php-sdk.git /path
$ cd /path
$ composer install
$ composer phpunit
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email to [Oanh Nguyen](mailto:oanhnn.bk@gmail.com) instead of using the issue tracker.

Credits
-------

[](#credits)

- [Oanh Nguyen](https://github.com/oanhnn)
- [All Contributors](../../contributors)

License
-------

[](#license)

This project is released under the MIT License.
Copyright © 2018 [Oanh Nguyen](https://oanhnn.github.io/).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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/b32dfbbbf603d0317f2ab7ab33c7c7611e90f6701c5c84f07a8b537aa84e83f7?d=identicon)[oanhnn](/maintainers/oanhnn)

---

Top Contributors

[![oanhnn](https://avatars.githubusercontent.com/u/1757120?v=4)](https://github.com/oanhnn "oanhnn (5 commits)")

---

Tags

sdkshopifyshopify-apishopify-embedded-applicationsshopify-partnersshopify-sdk

### Embed Badge

![Health badge](/badges/oanhnn-shopify-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/oanhnn-shopify-php-sdk/health.svg)](https://phpackages.com/packages/oanhnn-shopify-php-sdk)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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