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

ActiveLibrary[Security](/categories/security)

oanhnn/laravel-webhook-shield
=============================

Protects against unverified webhooks from 3rd party services on Laravel 5.5+

1.1.0(6y ago)1290MITPHPPHP ^7.1.3

Since Dec 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/oanhnn/laravel-webhook-shield)[ Packagist](https://packagist.org/packages/oanhnn/laravel-webhook-shield)[ Docs](https://github.com/oanhnn/laravel-webhook-shield)[ RSS](/packages/oanhnn-laravel-webhook-shield/feed)WikiDiscussions master Synced yesterday

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

Introduction
============

[](#introduction)

[![Latest Version](https://camo.githubusercontent.com/5827fc5db38d21f0f7f10d129b6bd252786809f094c8488eeaf5d6dcf49ea5c8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f616e686e6e2f6c61726176656c2d776562686f6f6b2d736869656c642e737667)](https://packagist.org/packages/oanhnn/laravel-webhook-shield)[![Software License](https://camo.githubusercontent.com/42b00f2dc163c880317bbd9f0d26ada162a67641144b851aa3687bb6bcc461d9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6f616e686e6e2f6c61726176656c2d776562686f6f6b2d736869656c642e737667)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/04b6200852375b2f1d3161199578b368a45538fbce38d2dd21142a7033dcf102/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6f616e686e6e2f6c61726176656c2d776562686f6f6b2d736869656c642f6d61737465722e737667)](https://travis-ci.org/oanhnn/laravel-webhook-shield)[![Coverage Status](https://camo.githubusercontent.com/8eb32c4210f2a6b170b10f68286f50ef37791cb2d7f7e8b494e4a5ad54b8084d/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6769746875622f6f616e686e6e2f6c61726176656c2d776562686f6f6b2d736869656c642f6d61737465722e737667)](https://coveralls.io/github/oanhnn/laravel-webhook-shield?branch=master)[![Total Downloads](https://camo.githubusercontent.com/062545f7ac7d1dd46dec181bd410b5751114045f560491172e6abdefe1913c47/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f616e686e6e2f6c61726176656c2d776562686f6f6b2d736869656c642e737667)](https://packagist.org/packages/oanhnn/laravel-webhook-shield)[![Requires PHP](https://camo.githubusercontent.com/59fc552461577580ff40d951a6dd54fdbad6a9554ccf68817e0e972b3a69e1ac/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7068702d762f6f616e686e6e2f6c61726176656c2d776562686f6f6b2d736869656c642e737667)](https://travis-ci.org/oanhnn/laravel-webhook-shield)

Protects against unverified webhooks from 3rd party services on Laravel 5.5+

Features
--------

[](#features)

- Supported Laravel 5.5+
- Allow multi services with same driver (Useful for two webhook endpoints of two facebook applications)
- Supported drivers
    - Bitbucket
    - Facebook
    - Github
    - Gitlab
    - Mailgun
    - Shopify
    - Trello
- Easy to extend more drivers

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

[](#requirements)

- php &gt;=7.1.3
- Laravel 5.5+

> Laravel 6.0+ required php 7.2+

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

[](#installation)

Begin by pulling in the package through Composer.

```
$ composer require oanhnn/laravel-webhook-shield
```

The package will automatically register itself.
You can publish the config-file with:

```
$ php artisan vendor:publish --provider=Laravel\WebhookShield\ServiceProvider
```

Usage
-----

[](#usage)

### Configure services

[](#configure-services)

In configuration file, you can define services

```
