PHPackages                             gkimball/php301mapper - 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. gkimball/php301mapper

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

gkimball/php301mapper
=====================

Maps an array of key val pairs to 301 redirects

1.0(9y ago)020PHP

Since Feb 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/yourlocalwebmaster/301Mapper)[ Packagist](https://packagist.org/packages/gkimball/php301mapper)[ RSS](/packages/gkimball-php301mapper/feed)WikiDiscussions master Synced yesterday

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

Installation
============

[](#installation)

Include the Php301Mapper class to your header file. Add the following to the top of your 404 loader page.

```
$redirects = [
    '/index.php?page1OLD' => '/index.php?page1NEW',
    '/index.php?page2OLD' => '/index.php?page2NEW',
    '/index.php?page3OLD' => '/index.php?page2NEW',
];

MapFactory::Mapper($_SERVER['REQUEST_URI'],$redirects)->run();

```

Dev Installation
================

[](#dev-installation)

`composer install`

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

3415d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1467542?v=4)[Grant Kimball](/maintainers/yourlocalwebmaster)[@yourlocalwebmaster](https://github.com/yourlocalwebmaster)

---

Top Contributors

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

---

Tags

redirectredirectionhtaccess301

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gkimball-php301mapper/health.svg)

```
[![Health](https://phpackages.com/badges/gkimball-php301mapper/health.svg)](https://phpackages.com/packages/gkimball-php301mapper)
```

###  Alternatives

[nystudio107/craft-retour

Retour allows you to intelligently redirect legacy URLs, so that you don't lose SEO value when rebuilding &amp; restructuring a website

40994.2k17](/packages/nystudio107-craft-retour)[fsasvari/laravel-trailing-slash

The package that adds redirection with trailing slash to Laravel framework.

61169.6k](/packages/fsasvari-laravel-trailing-slash)

PHPackages © 2026

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