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
Requires (Dev)
- php: >=7.0.0
- orchestra/testbench: ~3.5
- phpunit/phpunit: ~6.2
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
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.