Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

PHP library for Standard Webhooks

Installation

Example

Verifying a webhook payload:

$wh = new \StandardWebhooks\Webhook($base64Secret);
$wh->verify($webhookPayload, $webhookHeaders);

Required Dependencies

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.

Development

Requirements

  • PHP >= 5.6.0

Installing dependencies

composer install

Contributing

Before opening a PR be sure to format your code!

composer install
./vendor/bin/php-cs-fixer fix -v --using-cache=no .

Running Tests

Simply run:

composer install
./vendor/bin/phpunit php/tests