Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clarkeash/shield
A laravel middleware to protect against unverified webhooks from 3rd party services.
https://github.com/clarkeash/shield
laravel laravel-package php webhooks
Last synced: about 4 hours ago
JSON representation
A laravel middleware to protect against unverified webhooks from 3rd party services.
- Host: GitHub
- URL: https://github.com/clarkeash/shield
- Owner: clarkeash
- License: mit
- Created: 2017-07-21T17:18:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-19T07:42:31.000Z (about 7 years ago)
- Last Synced: 2024-10-31T17:51:57.268Z (7 days ago)
- Topics: laravel, laravel-package, php, webhooks
- Language: PHP
- Homepage:
- Size: 67.4 KB
- Stars: 96
- Watchers: 7
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Project Moved
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](https://getcomposer.org):
```bash
$ composer require clarkeash/shield
```Publish the package configuration:
```bash
$ php artisan vendor:publish --tag=config
```## Usage
Create your webhook route in `routes/api.php` and add the middleware like so:
```php
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
* ZapierFeel free to submit a PR to support other services.