8

svix-webhooks/php at main · svix/svix-webhooks · GitHub

 1 year ago
source link: https://github.com/svix/svix-webhooks/tree/main/php
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Website | Documentation | Community Slack

PHP library for interacting with the Svix API and verifying webhook signatures

Usage Documentation

You can find general usage documentation at https://docs.svix.com. For complete API documentation with code examples for each endpoint in all of our official client libraries head over to our API documentation site at https://api.svix.com.

Language Support

zap Features zap
Officially Supported white_check_mark
API Support soon
Signature Verification white_check_mark
Caveats None! rocket

Installation

Composer

Install via Composer:

composer require svix/svix

Autoload dependencies:

require __DIR__ . '/vendor/autoload.php';

Manual Installation

For now you can download the latest release. Then, to use the bindings, include the init.php file.

require_once('/path/to/svix-php/init.php');

Required Dependencies

Svix 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

First checkout the core README for details on how to generate our API bindings, then follow the steps below.

Requirements

  • PHP >= 5.6.0

Building the library

dotnet build

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

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK