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

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

mdooley47/laravel-redirect
==========================

Extends Laravel's redirect capabilities

v1.0.0(7y ago)019MITPHP

Since Sep 1Pushed 2y ago1 watchersCompare

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

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

Important

This project is old and not used anymore. Please use something like [ash-jc-allen/short-url](https://github.com/ash-jc-allen/short-url) instead.

laravel-redirect
================

[](#laravel-redirect)

Install
-------

[](#install)

You can install the package with composer:

```
composer require mdooley47/laravel-redirect
```

How To Use
----------

[](#how-to-use)

The purpose of this package is to provide a default `targetUrl` when redirecting in Laravel, if the current target does not match the desired url.

Simply call `defaultTarget($options, $default)` on the Redirect Facade.
`$options` either an array listing the robust validation options provided by [mdooley47/laravel-urlvalidator](https://github.com/mdooley47/laravel-urlvalidator) or a string that will use the `host` validator provided by [mdooley47/laravel-urlvalidator](https://github.com/mdooley47/laravel-urlvalidator).

```
\Illuminate\Support\Facades\Redirect::back()
    ->defaultTarget('match.domain.tld', 'default.domain.tld');

// Returns \Illuminate\Support\Facades\Redirect::getTargetUrl()
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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

2858d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d099c61c3ba07e16c61a0c278c9536615863c954b01d9efbddcc7a77a4d299a?d=identicon)[MDooley47](/maintainers/MDooley47)

---

Top Contributors

[![marzvrover](https://avatars.githubusercontent.com/u/6617862?v=4)](https://github.com/marzvrover "marzvrover (11 commits)")

---

Tags

laravelredirect

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77018.2M122](/packages/laravel-mcp)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[zidbih/laravel-deadlock

Make temporary Laravel workarounds expire and fail CI when ignored.

984.0k](/packages/zidbih-laravel-deadlock)[wearepixel/laravel-cart

A cart implementation for Laravel

1355.6k](/packages/wearepixel-laravel-cart)

PHPackages © 2026

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