loicm/shopify-webhook

There is no license information available for the latest version (2.0.1) of this package.

2.0.1 2016-12-20 18:13 UTC

This package is not auto-updated.

Last update: 2025-07-16 18:52:05 UTC


README

Shopify has Webhooks features 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.

Install

composer require loicm/shopify-webhook

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();
}