PHPackages                             vlakarados/rerouter - 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. [Framework](/categories/framework)
4. /
5. vlakarados/rerouter

ActiveLibrary[Framework](/categories/framework)

vlakarados/rerouter
===================

Advanced routing on top of FastRoute

2141[1 issues](https://github.com/vlakarados/ReRouter/issues)PHP

Since May 11Pushed 11y ago1 watchersCompare

[ Source](https://github.com/vlakarados/ReRouter)[ Packagist](https://packagist.org/packages/vlakarados/rerouter)[ RSS](/packages/vlakarados-rerouter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

ReRouter
========

[](#rerouter)

Description
-----------

[](#description)

ReRoute is a router allowing you to tie different actions to corresponding URL's, it's built over and complements the fantastic FastRoute - a blazing fast router. What differs ReRoute from others is the clean structure of your route definitions as well as some other features (see below).

Setting up ReRoute is a piece of cake, see docs below as well as the example application.

*Really early alpha - unstable, unsecure, just as the one you'd like to use, have fun!*

Features
--------

[](#features)

#### Route groups

[](#route-groups)

- Share settings across routes
- Prefix patterns of routes in group

#### Route patterns

[](#route-patterns)

- Readable route pattern arguments: `/user/{userId:numeric}/profile` or `/user/{username:alpha}`
- `alpha` instead of `[a-zA-Z]+`.
- `numeric` instead of `[0-9]+`.
- `alphanumeric` instead of `[a-zA-Z0-9]+`.
- `any` instead of `[a-zA-Z0-9$-_.+!*\'(),]+`.
- Create and register your own pattern.

#### Named routes

[](#named-routes)

- Routes can be named, then matched.
- URL can be built from a named route.

#### Middleware

[](#middleware)

- Add optional middleware to any route or route group or the whole application.
- Define as many types of middleware as you want and run it anywhere in your app by calling the middleware.

#### Filters

[](#filters)

Using ReRouter
--------------

[](#using-rerouter)

See example.php

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

[](#installation)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![vlakarados](https://avatars.githubusercontent.com/u/386678?v=4)](https://github.com/vlakarados "vlakarados (11 commits)")

### Embed Badge

![Health badge](/badges/vlakarados-rerouter/health.svg)

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

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

712181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)

PHPackages © 2026

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