项目作者: clarkeash

项目描述 :
A laravel middleware to protect against unverified webhooks from 3rd party services.
高级语言: PHP
项目地址: git://github.com/clarkeash/shield.git
创建时间: 2017-07-21T17:18:58Z
项目社区:https://github.com/clarkeash/shield

开源协议:MIT License

下载


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:

  1. $ composer require clarkeash/shield

Publish the package configuration:

  1. $ php artisan vendor:publish --tag=config

Usage

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

  1. 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.