PHPackages                             loicm/shopify-webhook - 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. loicm/shopify-webhook

ActiveLibrary[API Development](/categories/api)

loicm/shopify-webhook
=====================

2.0.1(9y ago)52993[1 PRs](https://github.com/loicm/shopify-webhook/pulls)PHP

Since Mar 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/loicm/shopify-webhook)[ Packagist](https://packagist.org/packages/loicm/shopify-webhook)[ Docs](https://github.com/loicm/shopify-webhook)[ RSS](/packages/loicm-shopify-webhook/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

Receive a Webhook from Shopify
==============================

[](#receive-a-webhook-from-shopify)

Shopify has [Webhooks features](https://docs.shopify.com/api/webhooks/using-webhooks) which have to be verified by calculating a digital signature.

Here is a small class to receive the POST request, verify the signature integrity and getting the data.

I use this is a tiny project to try [phpspec](http://www.phpspec.net/).

Install
-------

[](#install)

```
composer require loicm/shopify-webhook

```

Use
---

[](#use)

```
use Loicm\Shopify\WebHook;

$shopify_secret = 'Here is your secret key';

$webhook = new WebHook($shopify_secret);

if ($webhook->verify()) {
    // Do your stuff
    $data = $webhook->getData();
}

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 92.9% 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 ~160 days

Total

5

Last Release

3436d ago

Major Versions

1.2.0-alpha → 2.0.02016-12-17

### Community

Maintainers

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

---

Top Contributors

[![loicm](https://avatars.githubusercontent.com/u/206907?v=4)](https://github.com/loicm "loicm (13 commits)")[![jestersimpps](https://avatars.githubusercontent.com/u/6909198?v=4)](https://github.com/jestersimpps "jestersimpps (1 commits)")

---

Tags

apiwebhookshopify

### Embed Badge

![Health badge](/badges/loicm-shopify-webhook/health.svg)

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

###  Alternatives

[kyon147/laravel-shopify

Shopify package for Laravel to aide in app development

473252.9k](/packages/kyon147-laravel-shopify)[robwittman/shopify-php-sdk

PHP SDK for Shopify API

7098.9k1](/packages/robwittman-shopify-php-sdk)[zfr/zfr-shopify

PHP library for interacting with the Shopify REST API

37198.8k](/packages/zfr-zfr-shopify)[dan/shopify-api

Shopify API for PHP

218.1k](/packages/dan-shopify-api)

PHPackages © 2026

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