PHPackages                             edwin-luijten/shopify-client - 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. edwin-luijten/shopify-client

ActiveLibrary

edwin-luijten/shopify-client
============================

A client to communicate to the Shopify api.

v0.0.2(8y ago)030MITPHPPHP &gt;=7.0

Since Oct 11Pushed 8y ago2 watchersCompare

[ Source](https://github.com/mediamonks/shopify-client)[ Packagist](https://packagist.org/packages/edwin-luijten/shopify-client)[ RSS](/packages/edwin-luijten-shopify-client/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (5)Used By (0)

Shopify API Client
==================

[](#shopify-api-client)

[![Latest Version](https://camo.githubusercontent.com/d2480d6433ee0b938b6a10cedccdd2f640e690d28c3bb7c9fcf8ffea639790ee/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f656477696e2d6c75696a74656e2f73686f706966792d636c69656e742e7376673f7374796c653d666c6174)](https://github.com/Edwin-Luijten/shopify-client/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/f89a908c7d78598d591271ade1098487a6095d437bbe57f4d1e01feed071f5a8/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f456477696e2d4c75696a74656e2f73686f706966792d636c69656e742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Edwin-Luijten/shopify-client)[![Code Coverage](https://camo.githubusercontent.com/676f1362d7c3a1bafca468a062e2334ec07cc361039c4e2c5879f9d241c203b9/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f456477696e2d4c75696a74656e2f73686f706966792d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Edwin-Luijten/shopify-client/?branch=master)[![Quality Score](https://camo.githubusercontent.com/d09a607e37f0aeebc98fc08f437b959dd49cbb0b60d587b54e7b015bd1368f21/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f456477696e2d4c75696a74656e2f73686f706966792d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Edwin-Luijten/shopify-client/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/a2980460a1ef3af67324da861d688137cd1733ab18ce2db89a692970b88b50ee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656477696e2d6c75696a74656e2f73686f706966792d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/edwin-luijten/shopify-client)

This package provides a client to communicate with the [Shopify](https://help.shopify.com/api/getting-started) api.

Install
-------

[](#install)

Via Composer

```
$ composer require edwin-luijten/shopify-client
```

Usage
-----

[](#usage)

### Creating a Shopify application

[](#creating-a-shopify-application)

Read the following documentation:

### Using the Client

[](#using-the-client)

```
$client = new \ShopifyClient\Client(new \ShopifyClient\Config($domain, $key, $secret));
$client->orders->get(1);
$client->orders->all();
$client->orders->all([
    'page' => 2,
]);

$client->orders->metafields->all($orderId);
```

Throttle request to prevent bucket overflow:

```
$totalProducts = $client->products->count();
$perPage = 50;
$pages = $totalProducts all([
            'page' => $i,
        ]);
    });
}
```

### Add your own resources

[](#add-your-own-resources)

Check  for how to create your own resource.

```
$config = new \ShopifyClient\Config($domain, $key, $secret, [
  'helloWorld' => \HelloWorldClass::class,
];
$client = new \ShopifyClient\Client($config);
```

Implemented resources
---------------------

[](#implemented-resources)

- Abandoned checkouts
- Article (Accessible trough blogs)
- Blog
- CarrierService
- Checkout
- Collect
- CollectionListing
- Comment
- Country
- CustomCollection
- Customer
- CustomerAddress (Accessible trough customers)
- CustomerSavedSearch
- DiscountCode (Accessible trough priceRules)
- DraftOrder
- Event
- Fulfillment
- FulfillmentEvent
- FulfillmentService
- Gift Card (Shopify Plus)
- Location
- Marketing Event
- Metafield (products, variants, orders, blogs, articles)
- Multipass (Shopify Plus)
- Order
- Order Risks (Accessible trough orders)
- Page
- Policy
- PriceRule
- Product
- Product Image (Accessible trough products)
- Product Variant (Accessible trough products)
- ProductListing
- Province (Accessible trough countries)
- RecurringApplicationCharge
- Redirect
- Refund
- Report
- ResourceFeedback
- ScriptTag
- Shipping Zone
- Shop
- SmartCollection
- Storefront Access Token
- Theme
- Transaction
- UsageCharge
- User (Shopify Plus)
- Webhook
- ShopifyQL

Testing
-------

[](#testing)

Set some environment variables first:

- SHOPIFY\_DOMAIN
- SHOPIFY\_KEY
- SHOPIFY\_SECRET
- SHOPIFY\_RATE\_LIMIT
- SHOPIFY\_PRODUCT\_VARIANT\_ID

```
$ ./vendor/bin/phpunit
```

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

[](#contributing)

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

Security
--------

[](#security)

If you discover any security related issues, please email :author\_email instead of using the issue tracker.

Credits
-------

[](#credits)

- [Edwin Luijten](https://github.com/Edwin-Luijten)
- [All Contributors](https://github.com/Edwin-Luijten/shopify-client/graphs/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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.

###  Release Activity

Cadence

Every ~2 days

Total

2

Last Release

3111d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e6993df069a061031d80e7fbbf3d4e51b7d84563b08224b10cad084c1308e8a?d=identicon)[Edwin-Luijten](/maintainers/Edwin-Luijten)

---

Top Contributors

[![Edwin-Luijten](https://avatars.githubusercontent.com/u/1339637?v=4)](https://github.com/Edwin-Luijten "Edwin-Luijten (16 commits)")

---

Tags

shopify-apishopify-sdk

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/edwin-luijten-shopify-client/health.svg)

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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