PHPackages                             lemonphp/webhook-shield - 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. lemonphp/webhook-shield

ActiveLibrary[Security](/categories/security)

lemonphp/webhook-shield
=======================

Protects against unverified webhooks from 3rd party services

v1.0.0(6y ago)32[2 issues](https://github.com/lemonphp/webhook-shield/issues)MITPHPPHP ^7.1

Since Jan 10Pushed 6y ago1 watchersCompare

[ Source](https://github.com/lemonphp/webhook-shield)[ Packagist](https://packagist.org/packages/lemonphp/webhook-shield)[ Docs](https://github.com/lemonphp/webhook-shield)[ RSS](/packages/lemonphp-webhook-shield/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (2)Dependencies (6)Versions (4)Used By (0)

Webhook Shield
==============

[](#webhook-shield)

[![Latest Version](https://camo.githubusercontent.com/b864ae2df921ad8f88d57be6b14bb629249abbdcd4de7e8ebdb95fa8ac4a3b83/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c656d6f6e7068702f776562686f6f6b2d736869656c642e737667)](https://packagist.org/packages/lemonphp/webhook-shield)[![Software License](https://camo.githubusercontent.com/a1f1283d678c0ee8e08fe1167b002100da804fd8c5118f1ad2e1fa8f22e31f91/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6c656d6f6e7068702f776562686f6f6b2d736869656c642e737667)](LICENSE)[![Build Status](https://camo.githubusercontent.com/7fcd4daa4a2f785bafa361fc56879c598890b3417682fa89bb5eae33bbc2721e/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c656d6f6e7068702f776562686f6f6b2d736869656c642f6d61737465722e737667)](https://travis-ci.org/lemonphp/webhook-shield)[![Coverage Status](https://camo.githubusercontent.com/41ae189ed25366c3ee6bce04fb2ded2a631df4424ea1f3a3d0fb67e7f485d649/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6769746875622f6c656d6f6e7068702f776562686f6f6b2d736869656c642f6d61737465722e737667)](https://coveralls.io/github/lemonphp/webhook-shield?branch=master)[![Total Downloads](https://camo.githubusercontent.com/b90770b9b919b0edb595054e10be2c63c7b8229e055c1e0d3ef68d3f2382de37/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c656d6f6e7068702f776562686f6f6b2d736869656c642e737667)](https://packagist.org/packages/lemonphp/webhook-shield)[![Requires PHP](https://camo.githubusercontent.com/3dfbad72dc493ad285ce5e9a24ca9440e1a74cb34b2437a0c80d086443aba003/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7068702d762f6c656d6f6e7068702f776562686f6f6b2d736869656c642e737667)](https://travis-ci.org/lemonphp/webhook-shield)

Protects against unverified webhooks from 3rd party services.

Features
--------

[](#features)

- Compatible with [PSR-7](https://www.php-fig.org/psr/psr-7), [PSR-15](https://www.php-fig.org/psr/psr-15) and [PSR-17](https://www.php-fig.org/psr/psr-17)
- No dependencies
- Supported drivers
    - Bitbucket
    - Facebook
    - Github
    - Gitlab
    - Mailgun
    - Shopify
    - Trello
- Coding style follow [PSR-2](https://www.php-fig.org/psr/psr-2), [PSR-4](https://www.php-fig.org/psr/psr-4)

Requirements
------------

[](#requirements)

- php &gt;=7.1

Installation
------------

[](#installation)

Begin by pulling in the package through Composer.

```
$ composer require lemonphp/webhook-shield
```

Usage
-----

[](#usage)

### Slim 4

[](#slim-4)

1. Installation Slim application follow link

    ```
    $ composer require slim/slim slim/psr7 lemonphp/webhook-shield
    ```
2. Make `public/index.php` with below content

    ```
