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

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

laravelir/redirector
====================

a redirector package

v0.4.6(4y ago)179MITPHPPHP &gt;=7.4|^8.0

Since Feb 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/laravelir/redirector)[ Packagist](https://packagist.org/packages/laravelir/redirector)[ Docs](https://github.com/laravelir/redirector)[ Fund](https://idpay.ir/laravelir)[ RSS](/packages/laravelir-redirector/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (12)Used By (0)

[![Starts](https://camo.githubusercontent.com/895c121d93e8a54e453b59f9ac28c925cc2edc861569f174b7527e008695cdf8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6c61726176656c69722f72656469726563746f723f7374796c653d666c6174266c6f676f3d676974687562)](https://github.com/laravelir/redirector/forks) [![Forks](https://camo.githubusercontent.com/4096e02ab02d742eb4f7f49fd324de429136ed54cbf93dd59bdc45df32b3de9b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6c61726176656c69722f72656469726563746f723f7374796c653d666c6174266c6f676f3d676974687562)](https://github.com/laravelir/redirector/stargazers) [![Total Downloads](https://camo.githubusercontent.com/3b4b474f538905c4350e4e765dc5fd9e4fa4c424373625f4c263ae2f3d61274c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c61726176656c69722f72656469726563746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravelir/redirector)

laravel Package
===============

[](#laravel-package)

A redirector package

Seo Toolkit for laravel projects

### Installation

[](#installation)

1. Run the command below to add this package:

```
composer require laravelir/redirector

```

2. Open your config/app.php and add the following to the providers/aliases array:

```
Laravelir\Redirector\Providers\RedirectorServiceProvider::class, # provider
```

```
'Redirector' => Laravelir\Redirector\Facades\Redirector::class # aliases
```

3. Run the command below to install package:

```
php artisan redirector:install

```

### Features

[](#features)

for redirector service add this middleware

```
'redirector => \Laravelir\Redirector\Http\Middleware\RedirectorMiddleware::class,

```

for enforce https this middleware

```
'enforce_https' => \Laravelir\Redirector\Http\Middleware\RedirectorEnforceHttps::class,
```

add this to env:

```
REDIRECTOR_ENFORCE_HTTPS=true
```

### Redirector Service

[](#redirector-service)

```
use Laravelir\Redirector\Services;

$redirector = resolve(Redirector::class);

$redirector->store($source_url, $destination_url, $response_code);
$redirector->shouldRedirect(Request $request);
$redirector->redirect(Request $request);
```

#### Goals of this package (Todo)

[](#goals-of-this-package-todo)

1 -
2 - redirect 404 pages to exist page

enable/disable www to non-www

add slashed to end of all routes or remove it

force redirect http to https in htaccess and nginx

add route hit counter

implements features of wordpress plugins like redirect-301, SEO Redirection Premium, safe-redirect-manager, Yoast seo Pro, Rank Math

add redis - file - Mysql - Mongodb engine Repository

add redirect ro lower

abort index.php page to 404

add exclude urls for redirects

add wildcard params (Regular Expression Constraints)

add url shortener

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [:author\_name](https://github.com/:author_username)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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 ~5 days

Total

11

Last Release

1507d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad21d122619aec18469a011bdeb0f7c7067401fc3d907679c55424eccc9e4e4f?d=identicon)[miladimos](/maintainers/miladimos)

---

Top Contributors

[![miladimos](https://avatars.githubusercontent.com/u/31257147?v=4)](https://github.com/miladimos "miladimos (28 commits)")

---

Tags

laravellaravel-packagelaravel-redirectredirect-urlsredirectorlaravellaravel-packagelaravel-packageslumen packageslumen supportLaravel-Support

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[irazasyed/larasupport

Adds Laravel Package Support in Lumen.

130669.8k4](/packages/irazasyed-larasupport)[imanghafoori/laravel-nullable

A package to help you write expressive defensive code in a functional manner

151423.7k6](/packages/imanghafoori-laravel-nullable)[paxha/laravel-reportable

This Laravel Eloquent extension provides record according to dates using models.

111.2k](/packages/paxha-laravel-reportable)

PHPackages © 2026

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