PHPackages                             compwright/x-hub-signature - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. compwright/x-hub-signature

ActiveLibrary[Security](/categories/security)

compwright/x-hub-signature
==========================

X-Hub-Signature webhook signing utility for PHP

v1.0.0(2y ago)17.3k↑191.7%1[1 issues](https://github.com/compwright/x-hub-signature-php/issues)MITPHP

Since Apr 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/compwright/x-hub-signature-php)[ Packagist](https://packagist.org/packages/compwright/x-hub-signature)[ GitHub Sponsors](https://github.com/compwright)[ RSS](/packages/compwright-x-hub-signature/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

X-Hub-Signature tools for PHP
=============================

[](#x-hub-signature-tools-for-php)

[![Sponsor on GitHub](https://camo.githubusercontent.com/3206f4bc757ad3fc433012cb29f4b9a531b5924dbaccdab74426245645b61aaa/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d53706f6e736f72266d6573736167653d254532253944254134266c6f676f3d476974487562266c696e6b3d68747470733a2f2f6769746875622e636f6d2f73706f6e736f72732f636f6d70777269676874)](https://github.com/sponsors/compwright)

X-Hub-Signature is a compact way to validate webhooks from [Facebook](https://developers.facebook.com/docs/graph-api/webhooks/), [GitHub](https://developer.github.com/webhooks/securing/), or any other source that uses this signature scheme.

Care has been taken to avoid security issues, including timing attacks.

Getting Started
---------------

[](#getting-started)

To install:

```
composer require compwright/x-hub-signature
```

Usage
-----

[](#usage)

Sign a buffer containing a request body:

```
