PHPackages                             cwsdigital/twill-redirects - 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. cwsdigital/twill-redirects

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

cwsdigital/twill-redirects
==========================

Add an simple redirect capsule to your Twill projects.

1.1(2y ago)21.4k↓75%1[1 PRs](https://github.com/cwsdigital/twill-redirects/pulls)MITPHPPHP ^8.0

Since Nov 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/cwsdigital/twill-redirects)[ Packagist](https://packagist.org/packages/cwsdigital/twill-redirects)[ RSS](/packages/cwsdigital-twill-redirects/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Twill Redirects
===============

[](#twill-redirects)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6bd436f5602c6c5c1451b452822d825b94a93872c7c7ce94d496d464c330e6e6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6377736469676974616c2f7477696c6c2d7265646972656374732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cwsdigital/twill-redirects)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/c10b94c2f9ee5c430445805c44982a1e4568190078bcd13b4ec9e6b3576c3a5a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6377736469676974616c2f7477696c6c2d7265646972656374732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cwsdigital/twill-redirects)

[![Add new redirect module preview](https://github.com/cwsdigital/twill-redirects/raw/main/Twill-Redirects-Preview.png)](https://github.com/cwsdigital/twill-redirects/blob/main/Twill-Redirects-Preview.png)

What it does
------------

[](#what-it-does)

This package provides a simple way to allow users to manage any Redirects for their Twill Sites.

Requirements
------------

[](#requirements)

This package requires Laravel 8 or higher, PHP8 or higher, and Twill 3.0 or higher.

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

[](#installation)

First you want to install this dependency using composer, you can do this by running the following command:

```
$ composer require cwsdigital/twill-redirects
```

```
$ php artisan migrate
```

Configuration
-------------

[](#configuration)

### Adding to your Twill Admin

[](#adding-to-your-twill-admin)

This package is set up to automatically register the Redirects Capsule and add it directly to the Twill Admin Navigation.

#### Twill Admin Menu

[](#twill-admin-menu)

You may want to determine where to place the `Redirects` module in your Twill Navigation, for example, you want Redirects to appear as a secondary menu item within a primary navigation of Settings.

First you will need to publish the config file:

```
  php artisan vendor:publish --provider="CwsDigital\TwillRedirects\TwillRedirectsServiceProvider" --tag=config
```

Secondly, change the 'automaticNavigation' to false. This will prevent Twill from automatically adding the Redirects Primary Navigation link.

```
TwillNavigation::addLink(
    NavigationLink::make()->title('Settings')
        ->forModule('redirects')
    ->doNotAddSelfAsFirstChild()
    ->setChildren([
        NavigationLink::make()->title('Redirects')->forModule('redirects'),
    ])
);
```

Adding to your frontend Middleware
----------------------------------

[](#adding-to-your-frontend-middleware)

To make your frontend routing aware of the Redirect middleware you need to add this to the laravel middleware in Kernel.php

```
{{-- app/Http/Kernel.php --}}

protected $middleware = [
    // Add HandlesPageRedirects::class
    CwsDigital\TwillRedirects\Twill\Capsules\Redirects\Http\Middleware\HandlesPageRedirects::class,
];
```

Events
------

[](#events)

There are two events triggered in the Redirect Middleware.

1. **RedirectWasFound** event is triggered when a redirect has been found.
2. **RedirectWasNotFound** event is triggered when no redirect was found.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for details.

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

928d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/699342?v=4)[Paul Dwight](/maintainers/pauldwight)[@pauldwight](https://github.com/pauldwight)

---

Top Contributors

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

---

Tags

twillcwsdigitaltwill-redirects

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/cwsdigital-twill-redirects/health.svg)

```
[![Health](https://phpackages.com/badges/cwsdigital-twill-redirects/health.svg)](https://phpackages.com/packages/cwsdigital-twill-redirects)
```

###  Alternatives

[cwsdigital/twill-metadata

Add SEO Metadata to your Twill.io models.

3356.2k1](/packages/cwsdigital-twill-metadata)

PHPackages © 2026

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