saleschamp/webhooks
最新稳定版本:v3.1.0
Composer 安装命令:
composer require saleschamp/webhooks
包简介
Provides utilities required for signing and authenticating calls to public URLs.
README 文档
README
Introduction
This package provides utilities required for signing and authenticating calls to public URLs.
Usage
Verifying and signing requests
SalesChamp\Webhooks\Authenticator::sign expects raw HTTP request body as argument in order to provide a signature used for authentication, SalesChamp\Webhooks\Authenticator::verify expects signature received in X-SalesChamp-Signature HTTP header and raw HTTP request body in order to verify the request.
Data manipulation
SalesChamp\Webhooks\Data represents a crate with documentation describing data attached to webhook requests. This class should not be created manually, but rather generated by factories. Example of such implementation can be found in SalesChamp\Webhooks\NetteBridge\DataFactory made specifically for Nette Framework.
Tests
Can be run via ./runTests.sh.
Versioning
Library follows semantic versioning. Make sure to update to tag commits accordingly.
统计信息
- 总下载量: 14.21k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-05-17