PHPackages                             codeinc/redirect-middleware - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. codeinc/redirect-middleware

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

codeinc/redirect-middleware
===========================

A PSR-15 middleware to handle redirections

1.0.0(7y ago)06MITPHPPHP &gt;=7.1

Since May 28Pushed 7y ago1 watchersCompare

[ Source](https://github.com/CodeIncHQ/RedirectMiddleware)[ Packagist](https://packagist.org/packages/codeinc/redirect-middleware)[ Docs](https://github.com/CodeIncHQ/GoogleOAuth2Middleware)[ RSS](/packages/codeinc-redirect-middleware/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (8)Versions (3)Used By (0)

Redirect Middleware
===================

[](#redirect-middleware)

The PSR 7.1 library provides PSR-15 middleware to handle redirections. `RedirectMiddleware` is the base middleware using redirect URIs as `/go?to=https://www.example.org` while `SecureRedirectMiddleware` uses the [firebase/php-jwt](https://github.com/firebase/php-jwt) library to encrypt the redirect URL in a [JSON web token](https://jwt.io/).

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

[](#installation)

This library is available through [Packagist](https://packagist.org/packages/codeinc/redirect-middleware) and can be installed using [Composer](https://getcomposer.org/):

```
composer require codeinc/redirect-middleware
```

License
-------

[](#license)

The library is published under the MIT license (see [`LICENSE`](LICENSE) file).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

2

Last Release

2909d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/8f72f949d7f70e400c02c225685f1934dec6219689f25edec38b4037df166d58?d=identicon)[codeinc](/maintainers/codeinc)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/codeinc-redirect-middleware/health.svg)

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

###  Alternatives

[shopify/shopify-api

Shopify API Library for PHP

4634.8M16](/packages/shopify-shopify-api)[jimtools/jwt-auth

PSR-15 JWT Authentication middleware, A replacement for tuupola/slim-jwt-auth

20142.3k3](/packages/jimtools-jwt-auth)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)[mezzio/mezzio-authentication-oauth2

OAuth2 (server) authentication middleware for Mezzio and PSR-7 applications.

28483.0k2](/packages/mezzio-mezzio-authentication-oauth2)[openswoole/core

Openswoole core library

181.1M32](/packages/openswoole-core)[mezzio/mezzio-authentication

Authentication middleware for Mezzio and PSR-7 applications

121.6M26](/packages/mezzio-mezzio-authentication)

PHPackages © 2026

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