PHPackages                             davidyell/seo-redirector - 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. davidyell/seo-redirector

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

davidyell/seo-redirector
========================

0.0.3(7y ago)03.3k1MITPHPPHP ^7.2

Since Oct 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/davidyell/SeoRedirector)[ Packagist](https://packagist.org/packages/davidyell/seo-redirector)[ RSS](/packages/davidyell-seo-redirector/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (4)Used By (1)

Redirect finder
===============

[](#redirect-finder)

A small library for matching a url and finding a redirect, with an http code.

Matching urls
-------------

[](#matching-urls)

An array of redirects is required. With the key being the url to redirect, and the value being an array of `target` and `code.

You can use a direct match

```
// Direct matching
$redirects = [
    '/examples/first' => [
        'target' => '/tutorials/first',
        'code' => 301
    ]
];
```

You can use a slug match

```
// Slug matching
$redirects = [
    '/examples/:slug/first' => [
        'target' => '/tutorials/:slug/first',
        'code' => 301
    ],
    'examples/:slug' => [
        'target' => '/tutorials/:slug',
        'code' => 302
    ]
];
```

You can also use a greedy match

```
// Greedy matching
$redirects = [
    '/examples/*' => [
        'target' => '/tutorials',
        'code' => 301
    ]
];
```

More examples can be found in the tests.

License
=======

[](#license)

MIT

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

Total

3

Last Release

2767d ago

### Community

Maintainers

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

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/davidyell-seo-redirector/health.svg)

```
[![Health](https://phpackages.com/badges/davidyell-seo-redirector/health.svg)](https://phpackages.com/packages/davidyell-seo-redirector)
```

PHPackages © 2026

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