loicm / shopify-webhook
Installs: 299
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 3
Open Issues: 1
pkg:composer/loicm/shopify-webhook
Requires
Requires (Dev)
- phpspec/phpspec: ~3.2
This package is not auto-updated.
Last update: 2026-01-14 20:58: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();
}