PHPackages                             jobilla/deprecated-routes-middleware - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jobilla/deprecated-routes-middleware

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jobilla/deprecated-routes-middleware
====================================

A Laravel middleware to mark routes/endpoints as deprecated

1.2.0(3y ago)35.1k4MITPHPPHP ^7.4|^8.0

Since May 28Pushed 1y ago8 watchersCompare

[ Source](https://github.com/jobilla/deprecated-routes-middleware)[ Packagist](https://packagist.org/packages/jobilla/deprecated-routes-middleware)[ RSS](/packages/jobilla-deprecated-routes-middleware/feed)WikiDiscussions main Synced yesterday

READMEChangelog (5)Dependencies (4)Versions (5)Used By (0)

Deprecated Routes
=================

[](#deprecated-routes)

Laravel package to provide a middleware to mark any route as deprecated.

Install
-------

[](#install)

Run the following command in your project folder to add the package to your project.

```
composer require jobilla/deprecated-routes-middleware

```

*(Optional)* Add the following line to `$routeMiddleware` array in your `app/Http/Kernel.php`.

```
'deprecated' => \Jobilla\DeprecatedRoutes\Http\Middlewares\DeprecatedRoute::class,
```

Usage
-----

[](#usage)

### Using the middleware on route groups

[](#using-the-middleware-on-route-groups)

You can define the deprecation on route group level.

```
Route::prefix('api/v3')
    ->middleware('deprecated:2021-03-22')
    ->group(function () {
        // Your route definitions here.
    });
```

### Using the middleware on individual routes

[](#using-the-middleware-on-individual-routes)

You can define the middleware on a single route.

```
Route::get('old/endpoint', OldEnpointController::class)->middleware('deprecated:2021-03-22');
```

### Using the middleware on controllers

[](#using-the-middleware-on-controllers)

You can define the middleware inside a controller class.

```
class OldEnpointController extends Controller
{
    public function __construct()
    {
        $this->middleware('deprecated:2021-03-22');
    }
}
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 70.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 ~117 days

Total

4

Last Release

1459d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f7c369fe9e0f2394fa77dfd669ab045a4743a517fc08dcfdbc65dbe17928178?d=identicon)[phroggyy](/maintainers/phroggyy)

![](https://avatars.githubusercontent.com/u/2135597?v=4)[Hakan Aktas](/maintainers/hkan)[@hkan](https://github.com/hkan)

---

Top Contributors

[![hkan](https://avatars.githubusercontent.com/u/2135597?v=4)](https://github.com/hkan "hkan (29 commits)")[![ilan-moatty](https://avatars.githubusercontent.com/u/65910094?v=4)](https://github.com/ilan-moatty "ilan-moatty (8 commits)")[![alexbowers](https://avatars.githubusercontent.com/u/842974?v=4)](https://github.com/alexbowers "alexbowers (3 commits)")[![jorbascrumps](https://avatars.githubusercontent.com/u/5909516?v=4)](https://github.com/jorbascrumps "jorbascrumps (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jobilla-deprecated-routes-middleware/health.svg)

```
[![Health](https://phpackages.com/badges/jobilla-deprecated-routes-middleware/health.svg)](https://phpackages.com/packages/jobilla-deprecated-routes-middleware)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[whitecube/laravel-timezones

Store UTC dates in the database and work with custom timezones in the application.

106106.2k](/packages/whitecube-laravel-timezones)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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