PHPackages                             gmox/shopify-library - 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. gmox/shopify-library

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

gmox/shopify-library
====================

A Shopify API connector

1.0.4(8y ago)278PHPPHP &gt;=7.0

Since Jan 31Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (9)Versions (21)Used By (0)

Introduction
============

[](#introduction)

This is a library to interact with various Shopify functionality.

It supports both HTTP Basic and OAuth2 authentication. Authentication is done via an authentication strategy. These strategies decorate the outgoing request with the required authentication in the format that Shopify accepts.

The core functionality of this library is based on two concepts: The first is the idea of "Resources" which represent Shopify API Resources such as Orders, Products, Customers, etc. The second concept is that of "Models" which represent specific entities from Shopify: An order, a product, a customer, etc.

Resources
---------

[](#resources)

Because Shopify's API is [RESTful](https://www.w3.org/2001/sw/wiki/REST), every resource and sub-resource will have common CRUD methods. These methods will return either an Illuminate Collection of Model instances (when the resource returns an array of objects) or a Model instance.

To view the index of a resource, you simple call

`$resource->index($queryParameters)`

With query parameters as you need to filter down what gets returned.

To view a specific resource

`$resource->find(123456789)`

Or o pass a model instance that will then be used to find the resource on Shopify

`$resource->find($model)`

To create a resource

`$resource->create([ 'key' => 'value' ])`

Or to use a model instance

`$resource->create($model)`

To update a resource

`$resource->update([ 'key' => 'value' ])`

Or to use a model instance

`$resource->update($model)`

**Note**: The respective objects passed into `update()` must have an `id` field set.

To delete a resource

`$resource->delete(123456789)`

Or to use a model instance

`$resource->delete($model)`

Examples
--------

[](#examples)

The [examples](./examples) directory has three examples:

1. To download orders
2. To see Shopify with product data
3. To download products

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

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

Recently: every ~33 days

Total

20

Last Release

3029d ago

Major Versions

0.3.14 → 1.0.12017-10-26

PHP version history (2 changes)0.1PHP &gt;=5.6.4

0.3.14PHP &gt;=7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6823150?v=4)[Ryon Hunter](/maintainers/gmox)[@gmox](https://github.com/gmox)

---

Top Contributors

[![gmox](https://avatars.githubusercontent.com/u/6823150?v=4)](https://github.com/gmox "gmox (2 commits)")

---

Tags

restshopifyshopify-api

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[jlevers/selling-partner-api

PHP client for Amazon's Selling Partner API

4335.4M2](/packages/jlevers-selling-partner-api)[illuminate/http

The Illuminate Http package.

11937.2M6.5k](/packages/illuminate-http)[shopify/shopify-api

Shopify API Library for PHP

4655.2M19](/packages/shopify-shopify-api)[omniphx/forrest

A Laravel library for Salesforce

2724.6M9](/packages/omniphx-forrest)[api-platform/laravel

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)

PHPackages © 2026

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