PHP library for Standard Webhooks
Verifying a webhook payload:
$wh = new \StandardWebhooks\Webhook($base64Secret);
$wh->verify($webhookPayload, $webhookHeaders);Standard Webhooks PHP requires the following extensions in order to run:
If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.
- PHP >= 5.6.0
composer installBefore opening a PR be sure to format your code!
composer install
./vendor/bin/php-cs-fixer fix -v --using-cache=no .Simply run:
composer install
./vendor/bin/phpunit php/tests