nikic/FastRoute
Fast request router for PHP observed · 2026-08-28
Health v2 · maintenance only
64/100
- Activity 91
- Release rhythm 8
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4581
- days_rel: n/a
- days_push: 55
- n_releases_24m: 0
Adoption not part of the score
5268 stars · 449 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
FastRoute is a fast, regular expression-based HTTP request router library for PHP. It dispatches HTTP method and URI pairs to registered handlers using route patterns with typed placeholders.
Use cases
- route http requests in a php application
- match urls with dynamic placeholders like /user/{id}
- build a custom php framework or microkernel
- handle 404 and 405 responses for unmatched routes
- define routes for multiple http methods
- speed up routing in a high-traffic php api
When to choose
- you need a fast, standalone router for a PHP 8.1+ project
- you want regex-constrained route placeholders like {id:\d+}
- you are building your own framework or micro-framework and only need routing
- you need clear handling of NOT_FOUND and METHOD_NOT_ALLOWED dispatch results
When to avoid
- you use a full framework (Laravel, Symfony) that already includes a router
- you need middleware, controllers, or other framework features beyond routing
- your project runs on PHP older than 8.1
Facets
library · maturity stable
routing web-framework http-server web-development backend apis php http-router regex-router request-routing composer
1 source
- readme: https://github.com/nikic/FastRoute · fetched 2026-08-28 · 7ab51a0b4b6c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| nikic/FastRoute | main | 64 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem