PHPackages                             lumber94/redirector - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. lumber94/redirector

ActiveLibrary[HTTP &amp; Networking](/categories/http)

lumber94/redirector
===================

The package that provide an easy way to make redirect from old to new urls.

v1.0(6y ago)02MITPHPPHP ^7.1.3

Since Jul 31Pushed 6y ago1 watchersCompare

[ Source](https://github.com/lumber94/redirector)[ Packagist](https://packagist.org/packages/lumber94/redirector)[ RSS](/packages/lumber94-redirector/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Laravel Redirect
================

[](#laravel-redirect)

The package that provide an easy way to make redirect from old to new urls.

Installing
----------

[](#installing)

```
composer require lumber94/redirector

```

After updating composer, add the service provider to the providers array in `config/app.php`

```
Lumber94\Redirector\Providers\ServiceProvider::class

```

Publish migrations:

```
php artisan vendor:publish --tag=redirect-migrations

```

Optional Features
-----------------

[](#optional-features)

```
        // config for route prefix
        'route_prefix'     => env('BACKEND_PREFIX', 'admin'),

        // config for route as
        'route_as'         => env('BACKEND_AS', 'admin.'),

        // config for route middleware
        'route_middleware' => ['web'],

        // config for custom pagination attribute $perPage
        'per_page'         => 20,

        // config for redirect status codes
        'status_codes'     => [
            301 => '301',
            302 => '302',
        ],

```

How to use?
-----------

[](#how-to-use)

You can connect middleware in `app/Http/Kernel.php` class for web routes.

```
    protected $middlewareGroups = [
        'web' => [
            ...
            \Lumber94\Redirector\Http\Middleware\RedirectMiddleware::class,
            ...
        ],
    ];

```

Or you can connect middleware as specific and use them in your specific route:

```
    protected $routeMiddleware = [
        'redirect' => \Lumber94\Redirector\Http\Middleware\RedirectMiddleware::class,
    ];

    Route::get('/', function () {
        // ...
    })->middleware('redirect');

```

And now all what you need to do is create your redirects in redirect module.

What we can publish?
--------------------

[](#what-we-can-publish)

```
php artisan vendor:publish --tag=redirect-lang
php artisan vendor:publish --tag=redirect-views
php artisan vendor:publish --tag=redirect-config
php artisan vendor:publish --tag=redirect-migrations

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

2526d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19705901?v=4)[Serhii Parovchenko](/maintainers/lumber94)[@lumber94](https://github.com/lumber94)

---

Top Contributors

[![lumber94](https://avatars.githubusercontent.com/u/19705901?v=4)](https://github.com/lumber94 "lumber94 (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lumber94-redirector/health.svg)

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69122.6k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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