PHPackages                             yotech-ai/twill-cms-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. yotech-ai/twill-cms-redirects

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

yotech-ai/twill-cms-redirects
=============================

A Twill CMS package

v1.0.10(10mo ago)015MITPHP

Since Jun 18Pushed 10mo agoCompare

[ Source](https://github.com/Yotech-AI/twill-cms-redirects)[ Packagist](https://packagist.org/packages/yotech-ai/twill-cms-redirects)[ Docs](https://github.com/Yotech-AI/twill-cms-redirects)[ RSS](/packages/yotech-ai-twill-cms-redirects/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (24)Used By (0)

Twill CMS Redirects
===================

[](#twill-cms-redirects)

This package provides a simple redirect management capsule for [Twill](https://twillcms.com). It registers a singleton module where you can configure redirect rules that are applied by middleware on every request.

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

[](#installation)

```
composer require yotech-ai/twill-cms-redirects
```

Migration
---------

[](#migration)

Publish and run the package migration:

```
php artisan vendor:publish --tag="twill-cms-redirects-migrations"
php artisan migrate
```

Usage
-----

[](#usage)

The capsule creates a singleton module called `redirects`. Administrators can define redirect rules through the Twill UI. Each rule contains a `from` URL, a `to` URL and the status code to use.

Requests are intercepted by `twill.redirects` middleware which performs the redirect if a rule matches.

Activation
----------

[](#activation)

Add the service provider and middleware alias to your `config/twill.php` if not automatically discovered:

```
'providers' => [
    // ...
    TwillRedirects\TwillRedirectsServiceProvider::class,
],
```

Laravel 11 no longer uses the `Http\Kernel` class for middleware registration. Instead, middleware is configured in `bootstrap/app.php`. Because redirect rules may apply to URLs that don't match any defined route, the middleware should run before route resolution. Prepend it to the global middleware stack within the `withMiddleware` closure:

```
use TwillRedirects\Http\Middleware\RedirectMiddleware;
use Illuminate\Foundation\Configuration\Middleware;

->withMiddleware(function (Middleware $middleware) {
    $middleware->prepend(RedirectMiddleware::class);
})
```

Seeder
------

[](#seeder)

A `RedirectSeeder` is included and will create the initial singleton record if none exists. Twill automatically runs this seeder when you visit the capsule for the first time.

License
-------

[](#license)

MIT

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance53

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

Total

9

Last Release

327d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ac8d570db9d636f256199ad676697210fca949a8084a29ab684f90f7af946e6?d=identicon)[yotech](/maintainers/yotech)

---

Top Contributors

[![jefsev](https://avatars.githubusercontent.com/u/28394100?v=4)](https://github.com/jefsev "jefsev (36 commits)")

### Embed Badge

![Health badge](/badges/yotech-ai-twill-cms-redirects/health.svg)

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

PHPackages © 2026

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