clarkeash/shield

This package is abandoned and no longer maintained. The author suggests using the laravel-shield/shield package instead.

A laravel middleware to shield against unverified webhooks from 3rd party services

v1.0.1 2017-10-06 19:37 UTC

This package is auto-updated.

Last update: 2022-02-01 13:08:45 UTC


README

This project has moved to https://github.com/laravel-shield/shield.

I am still happy for your contributions please read the guide here: http://laravel-shield.com/contributing




Shield

68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636c61726b656173682f736869656c642e7376673f7374796c653d666c61742d737175617265 68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f636c61726b656173682f736869656c642e7376673f7374796c653d666c61742d737175617265 68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f636c61726b656173682f736869656c642e7376673f7374796c653d666c61742d737175617265 68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f636c61726b656173682f736869656c642e7376673f7374796c653d666c61742d737175617265 687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d40636c61726b656173682d626c75652e7376673f7374796c653d666c61742d737175617265

Shield is a laravel middleware to protect against unverified webhooks from 3rd party services.

Installation

You can pull in the package using composer:

$ composer require clarkeash/shield

Publish the package configuration:

$ php artisan vendor:publish --tag=config

Usage

Create your webhook route in routes/api.php and add the middleware like so:

Route::middleware('shield:github')->post('/hooks/github', 'HooksController@github');

The name after shield: is the name set in config/shield.php in the enabled section.

Services

  • GitHub
  • GitLab
  • Stripe
  • Zapier

Feel free to submit a PR to support other services.