PHPackages                             clarkeash/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. clarkeash/shield

Abandoned → [laravel-shield/shield](/?search=laravel-shield%2Fshield)Library[Security](/categories/security)

clarkeash/shield
================

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

v1.0.1(8y ago)947110MITPHP

Since Jul 23Pushed 8y ago5 watchersCompare

[ Source](https://github.com/clarkeash/shield)[ Packagist](https://packagist.org/packages/clarkeash/shield)[ RSS](/packages/clarkeash-shield/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Project Moved
=============

[](#project-moved)

This project has moved to .

I am still happy for your contributions please read the guide here:

Shield
======

[](#shield)

 [ ![](https://camo.githubusercontent.com/4b2c9b6e77de67c05fc7e1cb496b3b945635340ad9928517d9ebe71b7b76bc54/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636c61726b656173682f736869656c642e7376673f7374796c653d666c61742d737175617265) ](https://travis-ci.org/clarkeash/shield) [ ![](https://camo.githubusercontent.com/7dea02123ff9f517947005a4b05ef987db402ae49cda573cee7cd1efa2d62634/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f636c61726b656173682f736869656c642e7376673f7374796c653d666c61742d737175617265) ](https://codecov.io/gh/clarkeash/shield) [ ![](https://camo.githubusercontent.com/f67acb759d8518f09cb8f4e3d6bb5cf9d9994bc33faad56167711e1378d3a4c5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f636c61726b656173682f736869656c642e7376673f7374796c653d666c61742d737175617265) ](https://scrutinizer-ci.com/g/clarkeash/shield) [ ![](https://camo.githubusercontent.com/6e598127533f6f572edacf5ef8313213bc0702f66e57f22b9959d618c12f819b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f636c61726b656173682f736869656c642e7376673f7374796c653d666c61742d737175617265) ](https://github.com/clarkeash/shield/blob/master/LICENSE) [ ![](https://camo.githubusercontent.com/5438de899f236ffc7660c88780dcf6172a8c03560f6fa4aada3b8e573f8510e5/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d40636c61726b656173682d626c75652e7376673f7374796c653d666c61742d737175617265) ](https://twitter.com/clarkeash)

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

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

[](#installation)

You can pull in the package using [composer](https://getcomposer.org):

```
$ composer require clarkeash/shield
```

Publish the package configuration:

```
$ php artisan vendor:publish --tag=config
```

Usage
-----

[](#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
--------

[](#services)

- GitHub
- GitLab
- Stripe
- Zapier

Feel free to submit a PR to support other services.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 89.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~75 days

Total

2

Last Release

3142d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4aa56557de1c571ed78fb23fda585f3fd461425339df673fb293c609a6719c81?d=identicon)[clarkeash](/maintainers/clarkeash)

---

Top Contributors

[![clarkeash](https://avatars.githubusercontent.com/u/1612186?v=4)](https://github.com/clarkeash "clarkeash (26 commits)")[![peppeocchi](https://avatars.githubusercontent.com/u/4161743?v=4)](https://github.com/peppeocchi "peppeocchi (1 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")[![tomodutch](https://avatars.githubusercontent.com/u/4613944?v=4)](https://github.com/tomodutch "tomodutch (1 commits)")

---

Tags

laravellaravel-packagephpwebhooks

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/clarkeash-shield/health.svg)

```
[![Health](https://phpackages.com/badges/clarkeash-shield/health.svg)](https://phpackages.com/packages/clarkeash-shield)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
