PHPackages                             erdiko/shopify - 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. [Framework](/categories/framework)
4. /
5. erdiko/shopify

ActiveLibrary[Framework](/categories/framework)

erdiko/shopify
==============

Erdiko Shopify Package

0.2.0(9y ago)79115[1 issues](https://github.com/ArroyoLabs/erdiko-shopify/issues)MITPHPPHP &gt;=5.3.0

Since Aug 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ArroyoLabs/erdiko-shopify)[ Packagist](https://packagist.org/packages/erdiko/shopify)[ Docs](http://erdiko.org)[ RSS](/packages/erdiko-shopify/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (4)Dependencies (1)Versions (8)Used By (0)

erdiko-shopify
==============

[](#erdiko-shopify)

[![Package version](https://camo.githubusercontent.com/757038918a46037570929059f88a09d81a4365fa2928f4753470c6ec648aa077/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f657264696b6f2f73686f706966792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/erdiko/shopify)

Shopify API Adapter

- Connect to the Shopify API
- Guzzle support
- Convenient composer install
- PSR compliant
- Use with Erdiko or your favorite framework

If you are using composer and php 5.3 or greater, then this is a great package to use. It is compatible with frameworks such as Laravel, Symfony, SlimPHP, and of course Erdiko.

If you are using php 4 or are not using composer then check out [ohShopify](https://github.com/cmcdonaldca/ohShopify.php)

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

[](#installation)

**via composer**

```
composer require erdiko/shopify

```

Usage
-----

[](#usage)

To connect to shopify you can use the \\erdiko\\shopify\\Shopify class to connect to the Shopify API. This library can be used within any PHP app that supports composer.

If you are using erdiko you can leverage our service models and sample app to jumpstart your development.

Authorizing your App with your Shopify Store
--------------------------------------------

[](#authorizing-your-app-with-your-shopify-store)

This module relies on OAuth to access and interact with your shopify stores. Authorization with this module is only required for setup, but it is required for each store.

The workflow of authorizing your application with OAuth is "asking for permission" by constructing a link to allow Shopify to install this application. You will need to expose your application to a URL from which you can redirect and access. Edit your routes config to expose the Shopify module controller to make sure we construct and output the expected output for Shopify like so:

```
 {
     "routes": {
     	...
        "shop": "\erdiko\shopify\controllers\Shopify",
        ...
     }
 }

```

While we will defer you to the [official Shopify Docs](https://help.shopify.com/api/guides/authentication/oauth)for complete instructions, here are the brief instructions to authorize your application with your store:

- Register your application with the [Shopify Partners Dashboard](https://app.shopify.com/services/partners/api_clients)
- Retrieve your API Key, API Secret and the Refresh Token (also known as a "nonce") for your newly created application
- Construct your "Permissions Prompt" URL by editing the following URL

`https://{shop}.myshopify.com/admin/oauth/authorize?client_id={api_key}&scope={scopes}&redirect_uri={redirect_uri}&state={nonce}`

Tokens:

- {shop}
    - The subdomain for your shopify store
- {api\_key}
    - This is your API key
- {scopes}
    - This is a comma separated list of permissions you allow for your application
    - We would like to suggest the following: `write_products,write_orders,write_customers`
- {nonce}
    - Your Refresh Token, also known as a "nonce"
- {redirect\_url}
    - A publicily accessible route exposed by your erdiko application where the Shopify model is initialized

Erdiko App Skeleton
-------------------

[](#erdiko-app-skeleton)

If you are using Erdiko, [www.erdiko.org](http://www.erdiko.org), there is some useful code for interacting with Shopify (beyond the basic API library).

To install this skeleton app in your existing Erdiko app it takes only 3 steps.

1. Copy the contents of the erdiko-shopify /app folder into the relavant /app folders in your site.
2. Modify app/config/default/shopify.json with your specific Shopify settings
3. Add a route to the Shopfy controller in your routes.json file. The class is /erdiko/shopify/controllers/Shopify.

Feedback
--------

[](#feedback)

Please send us feedback if you have any questions or suggestions. If you find any bugs or find places where we are not PSR compliant please submit a github issue or email us.

Special Thanks
--------------

[](#special-thanks)

Arroyo Labs - For sponsoring development,

[cmcdonaldca/ohShopify.php](https://github.com/cmcdonaldca/ohShopify.php) - Original Shopify PHP class

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

Total

5

Last Release

3459d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/691c8888935e19e59a2dd12e4e056e9b05991f4ebe696ef27fc01db8e9d1c984?d=identicon)[arroyolabs](/maintainers/arroyolabs)

---

Top Contributors

[![arroyo](https://avatars.githubusercontent.com/u/378457?v=4)](https://github.com/arroyo "arroyo (24 commits)")[![cmtk888](https://avatars.githubusercontent.com/u/5304840?v=4)](https://github.com/cmtk888 "cmtk888 (22 commits)")[![saarmstrong](https://avatars.githubusercontent.com/u/142324?v=4)](https://github.com/saarmstrong "saarmstrong (14 commits)")[![phpguru](https://avatars.githubusercontent.com/u/798500?v=4)](https://github.com/phpguru "phpguru (1 commits)")[![rajesh-mreddy](https://avatars.githubusercontent.com/u/10005785?v=4)](https://github.com/rajesh-mreddy "rajesh-mreddy (1 commits)")

---

Tags

erdikoerdiko-shopifyphpshopifyshopify-apiframeworkerdikoerdiko-shopify

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[krayin/laravel-crm

Krayin CRM

22.0k32.8k1](/packages/krayin-laravel-crm)[shopware/platform

The Shopware e-commerce core

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

The SilverStripe framework

7213.5M2.5k](/packages/silverstripe-framework)[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)

PHPackages © 2026

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