PHPackages                             think.studio/laravel-release-protection - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. think.studio/laravel-release-protection

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

think.studio/laravel-release-protection
=======================================

Protect your routes for not allowed users.

1.1.0(2y ago)020MITPHPPHP ^7.4|^8.0

Since Jun 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dev-think-one/laravel-release-protection)[ Packagist](https://packagist.org/packages/think.studio/laravel-release-protection)[ Docs](https://github.com/dev-think-one/laravel-release-protection)[ RSS](/packages/thinkstudio-laravel-release-protection/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (3)Used By (0)

Laravel: release protection
===========================

[](#laravel-release-protection)

[![Packagist License](https://camo.githubusercontent.com/fd591e4d5002d71c5c6ff8c4d3d23f90c5a9f69a66f37007773d503ec69a1e29/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7468696e6b2e73747564696f2f6c61726176656c2d72656c656173652d70726f74656374696f6e3f636f6c6f723d253233346463373166)](https://camo.githubusercontent.com/fd591e4d5002d71c5c6ff8c4d3d23f90c5a9f69a66f37007773d503ec69a1e29/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7468696e6b2e73747564696f2f6c61726176656c2d72656c656173652d70726f74656374696f6e3f636f6c6f723d253233346463373166)[![Packagist Version](https://camo.githubusercontent.com/fd409cc369694a77c888d8311f9769fc0acb33507c6e855942291113b4478d4a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468696e6b2e73747564696f2f6c61726176656c2d72656c656173652d70726f74656374696f6e)](https://packagist.org/packages/think.studio/laravel-release-protection)[![Total Downloads](https://camo.githubusercontent.com/67aab487416c33cf76358810255b9b67f3c42345b1be2cbaaf73b4de5fa320f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7468696e6b2e73747564696f2f6c61726176656c2d72656c656173652d70726f74656374696f6e)](https://packagist.org/packages/think.studio/laravel-release-protection)[![Build Status](https://camo.githubusercontent.com/264b5650b04e47a046e33b941eff429bcf2dfb503c76a578d2e5b085ae784e45/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f6c61726176656c2d72656c656173652d70726f74656374696f6e2f6261646765732f6275696c642e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/laravel-release-protection/build-status/main)[![Code Coverage](https://camo.githubusercontent.com/58f4a868ccecb50d88d2d89f6c17b2f8ffa0346c7d3b3b6cfaa181979d64f62d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f6c61726176656c2d72656c656173652d70726f74656374696f6e2f6261646765732f636f7665726167652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/laravel-release-protection/?branch=main)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e20f829776a323513cf7facf5c7d8ca355b3c8379641a408f7f0e43c0d5ef65a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f6c61726176656c2d72656c656173652d70726f74656374696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/laravel-release-protection/?branch=main)

Protect your routes for not allowed users.

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

[](#installation)

Install the package via composer:

```
composer require think.studio/laravel-release-protection
```

You can publish the config file with:

```
php artisan vendor:publish --provider="ReleaseProtection\ServiceProvider" --tag="config"
```

Configuration in *.env* (optional)

```
RPROTECT_TESTERS_EMAILS="myemail@test.com,otheremail@test.com"
RPROTECT_FIRST_PARTY_IPS="123.4.5.6,123.4.5.7"
```

Usage
-----

[](#usage)

Add new middlewares

```
# app/Http/Kernel.php
protected $routeMiddleware = [
    // ...
    'first-party-ip'          => \ReleaseProtection\Http\Middleware\VerifyFirstPartyClientIp::class,
    'testers-email'           => \ReleaseProtection\Http\Middleware\TestersEmailMiddleware::class,
];
```

Add middleware to routes

```
Route::middleware([ 'auth', 'testers-email:auth' ])
     ->group(function () {
     //
     });
Route::get( 'my/events', \App\Http\Controllers\Events::class )
             ->middleware( [ 'first-party-ip:events' ] );
```

Credits
-------

[](#credits)

- [![Think Studio](https://camo.githubusercontent.com/8e541bece07d503c85a126b5294865faa00e27371048772f566a0cce8c01fd3a/68747470733a2f2f7961726f736c617777772e6769746875622e696f2f696d616765732f73706f6e736f72732f7061636b616765732f6c6f676f2d7468696e6b2d73747564696f2e706e67)](https://think.studio/)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~806 days

Total

2

Last Release

995d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.4

1.1.0PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/53f93fa87d58f33d106de6bd5e2946f8a345ebfaee146360746056cb134a15a0?d=identicon)[think.studio](/maintainers/think.studio)

---

Top Contributors

[![yaroslawww](https://avatars.githubusercontent.com/u/23663794?v=4)](https://github.com/yaroslawww "yaroslawww (3 commits)")

---

Tags

middlewarelaravelprotection

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/thinkstudio-laravel-release-protection/health.svg)

```
[![Health](https://phpackages.com/badges/thinkstudio-laravel-release-protection/health.svg)](https://phpackages.com/packages/thinkstudio-laravel-release-protection)
```

###  Alternatives

[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[spatie/laravel-authorize

A middleware to check authorization

20125.8k1](/packages/spatie-laravel-authorize)[kronthto/laravel-oauth2-login

Provides a middleware to protect resources requiring an OAuth2 login

2117.5k1](/packages/kronthto-laravel-oauth2-login)[hosseinhezami/laravel-permission-manager

Advanced permission manager for Laravel.

403.3k](/packages/hosseinhezami-laravel-permission-manager)

PHPackages © 2026

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