PHPackages                             davidhirtz/yii2-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. [Admin Panels](/categories/admin)
4. /
5. davidhirtz/yii2-shopify

ActiveYii2-extension[Admin Panels](/categories/admin)

davidhirtz/yii2-shopify
=======================

Shopify module for admin panel based on Yii 2.0 framework

2.3.0(3w ago)016211proprietaryPHPPHP ^8.3CI passing

Since May 3Pushed 3w ago1 watchersCompare

[ Source](https://github.com/davidhirtz/yii2-shopify)[ Packagist](https://packagist.org/packages/davidhirtz/yii2-shopify)[ Docs](https://www.github.com/davidhirtz/yii2-shopify)[ RSS](/packages/davidhirtz-yii2-shopify/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (24)Versions (42)Used By (1)

Shopify backend based on the [Yii 2](http://www.yiiframework.com/)extension [yii2-skeleton](https://github.com/davidhirtz/yii2-skeleton/).

### Shopify setup

[](#shopify-setup)

First, a custom app needs to be created in the Shopify admin under `Apps` &gt; `Develop apps` &gt; `Build apps in Dev Dashboard` &gt; `Create app` &gt; `Start from Dev Dashboard`. Once completed, the app needs to be configured to allow at least these Admin API access scopes:

- `read_inventory`
- `read_products`

To use the Storefront API (shopify.js), activate the Storefront API integration with the following permissions:

- `unauthenticated_write_checkouts`
- `unauthenticated_read_checkouts`
- `unauthenticated_write_customers`
- `unauthenticated_read_customers`
- `unauthenticated_read_product_listings`
- `unauthenticated_read_product_inventory`

Here is the complete comma-separated string for the configuration:

```
read_inventory,read_products,unauthenticated_write_checkouts,unauthenticated_read_checkouts,unauthenticated_write_customers,unauthenticated_read_customers,unauthenticated_read_product_inventory,unauthenticated_read_product_listings

```

### Credentials

[](#credentials)

Following Shopify credentials need to be either added to `config/params.php` or directly set as properties in `davidhirtz\yii2\shopify\Module`. They can be found in app settings in the Shopify dev dashboard.

```
shopifyShopName                 The shopify name of your shop (https://NAME.myshopify.com/)
shopifyShopDomain               Your custom shop URL (optional)
shopifyApiKey                   Shopify App Client ID
shopifyApiSecret                Shopify App Secret

```

Additionally, a `shopifyAccessToken` is needed, but can be autogenerated via the GraphQL API since 2026, so you can leave it empty for new shops. To use the Storefront API, you also need to set the `shopifyStorefrontAccessToken` which can be generated with the following command:

```
php yii shopify/storefront-access-token
```

### Webhooks

[](#webhooks)

After the configuration is completed, go to `Products` &gt; `Webhooks` (the user permission `Manage Shopify webhooks` is required) and click on `Install Webhooks` to register the necessary webhooks which sync the Shopify admin with the website.

### Products

[](#products)

Products are synced automatically on change in Shopify admin. If products were already created before the webhooks were registered or there seems to be an issue with the sync, click on `Reload Products` to load all products from Shopify.

### Shopify Theme

[](#shopify-theme)

To disable the "Online shop" app in the backend, you can create a minimal theme or upload this [package](https://github.com/instantcommerce/shopify-headless-theme) and configure the `storefront_hostname` in `Theme settings` &gt; `Storefront`.

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance95

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity76

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~39 days

Recently: every ~106 days

Total

39

Last Release

25d ago

Major Versions

v0.1.1 → v1.0.02022-05-05

v1.1.7 → v2.0.02023-11-03

v1.1.8 → v2.1.02023-12-20

v1.x-dev → 2.1.82024-08-19

2.2.1 → v3.x-dev2025-12-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/4266eaf8539e1f155d297647f285c2c2ddd1f3d73f279230acb0fdec9da05af1?d=identicon)[davidhirtz](/maintainers/davidhirtz)

---

Top Contributors

[![davidhirtz](https://avatars.githubusercontent.com/u/973624?v=4)](https://github.com/davidhirtz "davidhirtz (142 commits)")

###  Code Quality

TestsCodeception

Static AnalysisRector

Code StyleECS

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k28.4M137](/packages/laravel-cashier)[laravel/cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.

267880.7k3](/packages/laravel-cashier-paddle)[verbb/formie

The most user-friendly forms plugin for Craft.

100387.6k57](/packages/verbb-formie)[craftcms/commerce

Craft Commerce

239422.6k176](/packages/craftcms-commerce)[bitrix24/b24phpsdk

An official PHP library for the Bitrix24 REST API

10139.4k5](/packages/bitrix24-b24phpsdk)

PHPackages © 2026

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