PHPackages                             pardalsalcap/hailo-redirections - 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. pardalsalcap/hailo-redirections

ActiveLibrary

pardalsalcap/hailo-redirections
===============================

This is my package hailo-redirections

v0.1.1(2y ago)03MITPHPPHP ^8.1

Since Feb 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/pardalsalcap/hailo-redirections)[ Packagist](https://packagist.org/packages/pardalsalcap/hailo-redirections)[ Docs](https://github.com/pardalsalcap/hailo-redirections)[ GitHub Sponsors](https://github.com/pardalsalcap)[ RSS](/packages/pardalsalcap-hailo-redirections/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (11)Versions (4)Used By (0)

Hailo Redirections
==================

[](#hailo-redirections)

[![Latest Version on Packagist](https://camo.githubusercontent.com/223eb621c217dfc5463feaef1876405bba1f8037d7756e6ac21db836f4f371bc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70617264616c73616c6361702f6861696c6f2d7265646972656374696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pardalsalcap/hailo-redirections)[![GitHub Tests Action Status](https://camo.githubusercontent.com/a7dc856981e7c7a1638085aefe3a2f959b0f8966f65e161973e451a0a80391ec/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f70617264616c73616c6361702f6861696c6f2d7265646972656374696f6e732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/pardalsalcap/hailo-redirections/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/0cb42ed004730856dff10d952b93b80c362e0029effa59c7ad9afaf7bfef853b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f70617264616c73616c6361702f6861696c6f2d7265646972656374696f6e732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/pardalsalcap/hailo-redirections/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/7a474849da0044199bd906cb206838ceab26c43989d3be3e8e219128cfb64f9b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70617264616c73616c6361702f6861696c6f2d7265646972656374696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pardalsalcap/hailo-redirections)

This is an add-on for Hailo that allows you to log 404 errors and create redirections for them.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require pardalsalcap/hailo-redirections
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="hailo-redirections-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="hailo-redirections-config"
```

This is the contents of the published config file:

```
return [
    '404' => true,
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="hailo-redirections-views"
```

Usage
-----

[](#usage)

Add the render method into the `app/Exceptions/Handler.php` file.

```
public function render($request, Throwable $e) {
    if ($e instanceof NotFoundHttpException) {
        $http_status = $e->getStatusCode();
        $redirection_repository = new RedirectionRepository();
        $redirection = $redirection_repository->logError(request()->fullUrl(), $http_status);
        if (!empty($redirection->fix)) {
            return redirect($redirection->fix, $redirection->http_status);
        }
    }
    return parent::render($request, $e);
}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

Credits
-------

[](#credits)

- [pardalsalcap](https://github.com/pardalsalcap)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Total

2

Last Release

817d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/73c7deb72893167ce8d32a4a7f56fa960d1d329d6f3f057197d5e9d91d65de8a?d=identicon)[pardalsalcap](/maintainers/pardalsalcap)

---

Top Contributors

[![pardalsalcap](https://avatars.githubusercontent.com/u/264531?v=4)](https://github.com/pardalsalcap "pardalsalcap (12 commits)")

---

Tags

laravelpardalsalcaphailo-redirections

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/pardalsalcap-hailo-redirections/health.svg)

```
[![Health](https://phpackages.com/badges/pardalsalcap-hailo-redirections/health.svg)](https://phpackages.com/packages/pardalsalcap-hailo-redirections)
```

###  Alternatives

[leandrocfe/filament-apex-charts

Apex Charts integration for Filament PHP.

4861.2M8](/packages/leandrocfe-filament-apex-charts)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[spatie/livewire-filepond

Upload files using Filepond in Livewire components

306452.7k3](/packages/spatie-livewire-filepond)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[codebar-ag/laravel-filament-json-field

A Laravel Filament JSON Field integration with CodeMirror support

1124.1k](/packages/codebar-ag-laravel-filament-json-field)

PHPackages © 2026

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