PHPackages                             artjoker/redirect - 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. artjoker/redirect

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

artjoker/redirect
=================

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

v1.0.0(6y ago)01.4k1MITPHPPHP ^7.1.3

Since Aug 1Pushed 6y ago2 watchersCompare

[ Source](https://github.com/artjoker/redirect)[ Packagist](https://packagist.org/packages/artjoker/redirect)[ RSS](/packages/artjoker-redirect/feed)WikiDiscussions master Synced 2d 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 artjoker/redirect

```

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

```
Artjoker\Redirect\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' => [
            ...
            \Artjoker\Redirect\Http\Middleware\RedirectMiddleware::class,
            ...
        ],
    ];

```

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

```
    protected $routeMiddleware = [
        'redirect' => \Artjoker\Redirect\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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

2477d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4494b41d92c564ee19e52ec8d2cb2805a5b67618b57579427e5cca9a7d2dbacf?d=identicon)[artjoker](/maintainers/artjoker)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/artjoker-redirect/health.svg)

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

###  Alternatives

[patricktalmadge/bootstrapper

Twitter Bootstrap markup generator

557407.2k4](/packages/patricktalmadge-bootstrapper)[nwidart/laravel-menus

Laravel Menu management

168180.3k10](/packages/nwidart-laravel-menus)[pingpong/menus

Laravel Menus

70194.4k13](/packages/pingpong-menus)[akaunting/laravel-menu

Menu and sidebar management package for Laravel

38233.8k](/packages/akaunting-laravel-menu)[caouecs/sirtrevorjs

Sir Trevor JS in Laravel project

5421.6k](/packages/caouecs-sirtrevorjs)[rinvex/laravel-menus

Rinvex Menus is a simple menu builder package for Laravel, that supports hierarchical structure, ordering, and styling with full flexibility using presenters for easy styling and custom structure of menu rendering.

294.0k20](/packages/rinvex-laravel-menus)

PHPackages © 2026

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