PHPackages                             doeanderson/redirect-trailing-slash - 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. doeanderson/redirect-trailing-slash

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

doeanderson/redirect-trailing-slash
===================================

Middleware to automatically redirect URLs that end with a slash

1.0.0(5y ago)03[3 PRs](https://github.com/doeanderson/redirect-trailing-slash/pulls)MITPHP

Since Jun 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/doeanderson/redirect-trailing-slash)[ Packagist](https://packagist.org/packages/doeanderson/redirect-trailing-slash)[ RSS](/packages/doeanderson-redirect-trailing-slash/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (2)Versions (5)Used By (0)

Redirect Trailing Slash
=======================

[](#redirect-trailing-slash)

Middleware for removing the trailing slash from a URL. *For when you just can't modify your server configuration.*

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

[](#installation)

You can install the package via composer:

```
composer require doeanderson/redirect-trailing-slash
```

Testing
-------

[](#testing)

```
./vendor/bin/phpunit
```

Changelog
---------

[](#changelog)

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

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Unknown

Total

1

Last Release

1835d ago

### Community

Maintainers

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

---

Top Contributors

[![notnek](https://avatars.githubusercontent.com/u/114763?v=4)](https://github.com/notnek "notnek (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/doeanderson-redirect-trailing-slash/health.svg)

```
[![Health](https://phpackages.com/badges/doeanderson-redirect-trailing-slash/health.svg)](https://phpackages.com/packages/doeanderson-redirect-trailing-slash)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.8k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M90](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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