PHPackages                             culturekings/shopify-php-api-wrapper - 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. culturekings/shopify-php-api-wrapper

ActiveLibrary[API Development](/categories/api)

culturekings/shopify-php-api-wrapper
====================================

Shopify PHP (Guzzle) API Wrapper

v1.1.11(6y ago)13.0kMITPHPPHP &gt;=5.4CI failing

Since Jul 15Pushed 5y ago12 watchersCompare

[ Source](https://github.com/culturekings/PHP-Shopify-API-Wrapper)[ Packagist](https://packagist.org/packages/culturekings/shopify-php-api-wrapper)[ Docs](http://www.shopifyextras.com)[ RSS](/packages/culturekings-shopify-php-api-wrapper/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (6)Dependencies (4)Versions (15)Used By (0)

Shopify API Wrapper
===================

[](#shopify-api-wrapper)

Forked from Zapiet, moving towards batch requests &amp; better handling of API call limits

### Installing via Composer

[](#installing-via-composer)

The recommended way to install the wrapper is through [Composer](http://getcomposer.org).

```
# Install Composer
curl -sS https://getcomposer.org/installer | php
```

Next, run the Composer command to install the latest stable version of the wrapper:

```
composer require shopifyextras/shopify-php-api-wrapper
```

After installing, you need to require Composer's autoloader:

```
require 'vendor/autoload.php';
```

### Getting Started

[](#getting-started)

First you will need to initialise the client like this:

```
$client = new \Shopify\Client([
   "shopUrl" => $shopUrl,
   "X-Shopify-Access-Token" => $accessToken
]);
```

Then you can begin making requests like shown below. Please note that the list of requests below is not complete. All endpoints are available just take a look in the /src/resources folder for reference.

### Orders

[](#orders)

```
// Get a list of all orders.
$client->getOrders();

// Get a specific order.
$client->getOrder(['id' => $order_id]);

// Get Order ID and Total Price for a specific order.
$client->getOrder(['id' => $order_id,
                   'fields' => 'id,total_price']);
```

### Products

[](#products)

```
// Get a list of all products.
$client->getProducts();

// Get a specific product.
$client->getProduct(["id" => $product_id]);
```

### Product Variants

[](#product-variants)

```
// Get a list of all variants for a specific product.
$client->getProductVariants(["id" => $product_id]);

// Get a specific product variant.
$client->getProductVariant(["id" => $variant_id]);

// Get metafields for a specific variant.
$client->getProductVariantMetafields(["id" => $variant_id]);
```

### To-do / Improvements

[](#to-do--improvements)

- Batching requests in a pool
- Handling of API call limits globally
- Improved Logging

### Bugs &amp; Issues

[](#bugs--issues)

If you spot any bugs, please report it using the issue tracker. If you would like to contribute to the project please feel free to make your amends and submit a pull request.

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Recently: every ~346 days

Total

9

Last Release

2241d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17635174?v=4)[Culture Kings](/maintainers/culturekings)[@culturekings](https://github.com/culturekings)

---

Top Contributors

[![cargix1](https://avatars.githubusercontent.com/u/9730290?v=4)](https://github.com/cargix1 "cargix1 (36 commits)")[![cargi](https://avatars.githubusercontent.com/u/793131?v=4)](https://github.com/cargi "cargi (23 commits)")[![jonathan-bird](https://avatars.githubusercontent.com/u/1510001?v=4)](https://github.com/jonathan-bird "jonathan-bird (6 commits)")[![sebmaynard](https://avatars.githubusercontent.com/u/1586603?v=4)](https://github.com/sebmaynard "sebmaynard (6 commits)")[![webaction](https://avatars.githubusercontent.com/u/2551285?v=4)](https://github.com/webaction "webaction (5 commits)")[![michaeljhopkins](https://avatars.githubusercontent.com/u/4623657?v=4)](https://github.com/michaeljhopkins "michaeljhopkins (4 commits)")[![davidbradleyculturekings](https://avatars.githubusercontent.com/u/52159248?v=4)](https://github.com/davidbradleyculturekings "davidbradleyculturekings (3 commits)")[![jared-fraser](https://avatars.githubusercontent.com/u/1113900?v=4)](https://github.com/jared-fraser "jared-fraser (2 commits)")[![riotCode](https://avatars.githubusercontent.com/u/1652575?v=4)](https://github.com/riotCode "riotCode (1 commits)")[![rjbecker](https://avatars.githubusercontent.com/u/9274638?v=4)](https://github.com/rjbecker "rjbecker (1 commits)")[![paulchiu](https://avatars.githubusercontent.com/u/3478672?v=4)](https://github.com/paulchiu "paulchiu (1 commits)")[![SorenA](https://avatars.githubusercontent.com/u/999651?v=4)](https://github.com/SorenA "SorenA (1 commits)")[![tareqtms](https://avatars.githubusercontent.com/u/5279389?v=4)](https://github.com/tareqtms "tareqtms (1 commits)")[![nothsa](https://avatars.githubusercontent.com/u/110795?v=4)](https://github.com/nothsa "nothsa (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/culturekings-shopify-php-api-wrapper/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[shopifyextras/shopify-php-api-wrapper

Shopify PHP (Guzzle) API Wrapper

11922.2k](/packages/shopifyextras-shopify-php-api-wrapper)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[erlangb/betfair

Betfair API PHP 5.4+ library

471.6k](/packages/erlangb-betfair)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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