PHPackages                             sonu179208/shopify-sdk - 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. sonu179208/shopify-sdk

ActiveLibrary

sonu179208/shopify-sdk
======================

Framework-agnostic PHP SDK for Shopify REST &amp; GraphQL APIs

v1.0.0(10mo ago)01MITPHPPHP &gt;=7.4

Since Jul 7Pushed 10mo agoCompare

[ Source](https://github.com/sonu179208/Shopify-PHP-SDK)[ Packagist](https://packagist.org/packages/sonu179208/shopify-sdk)[ RSS](/packages/sonu179208-shopify-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

```
# Shopify SDK for PHP

A lightweight, framework-agnostic PHP SDK for interacting with the Shopify REST and GraphQL APIs. Easily integrate Shopify into any PHP app — Laravel, CodeIgniter, or Core PHP.

---

## 🛠️ Installation

Install via Composer:

```bash
composer require sonu179208/shopify-sdk
```

---

🚀 Quick Start
-------------

[](#-quick-start)

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

use ShopifySDK\Shopify;

$shopify = new Shopify("yourstore.myshopify.com", "your-access-token");

// Get all products
$response = $shopify->get("products.json");

print_r($response);
```

---

🧩 REST API Usage (CRUD)
-----------------------

[](#-rest-api-usage-crud)

### ✅ Create Product

[](#-create-product)

```
$newProduct = [
    "product" => [
        "title" => "New Product",
        "body_html" => "Awesome product",
        "vendor" => "Sonu Inc.",
        "product_type" => "Custom"
    ]
];

$response = $shopify->post("products.json", $newProduct);
```

### 🔍 Read Products

[](#-read-products)

```
$response = $shopify->get("products.json");
```

### ✏️ Update Product

[](#️-update-product)

```
$productId = 1234567890;

$update = [
    "product" => [
        "id" => $productId,
        "title" => "Updated Product Title"
    ]
];

$response = $shopify->put("products/{$productId}.json", $update);
```

### ❌ Delete Product

[](#-delete-product)

```
$productId = 1234567890;
$response = $shopify->delete("products/{$productId}.json");
```

---

⚡ GraphQL API Usage
-------------------

[](#-graphql-api-usage)

### ✅ Run a GraphQL Query

[](#-run-a-graphql-query)

```
$query = listWebhooks();
```

### Delete Webhook

[](#delete-webhook)

```
$webhookId = 123456789;
$response = $shopify->deleteWebhook($webhookId);
```

---

🧱 Framework Compatibility
-------------------------

[](#-framework-compatibility)

- ✅ Laravel
- ✅ CodeIgniter
- ✅ Symfony
- ✅ Core PHP
- ✅ Any modern PHP app (PHP 7.4+)

---

👨‍💻 Author
----------

[](#‍-author)

**Sonu Kumar**

- **GitHub:** [@sonu179208](https://www.google.com/search?q=https://github.com/sonu179208)
- **Email:**

```

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance54

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

306d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b869daa72b9c2ce8bae7e29fb4cde0f4d980ca8f636ebd98c2ed44fe5933d962?d=identicon)[sonu179208](/maintainers/sonu179208)

---

Top Contributors

[![sonu179208](https://avatars.githubusercontent.com/u/11926139?v=4)](https://github.com/sonu179208 "sonu179208 (3 commits)")

### Embed Badge

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

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

PHPackages © 2026

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