klein/klein.php
A fast & flexible router observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5630
- days_rel: n/a
- days_push: 946
- n_releases_24m: 0
Adoption not part of the score
2657 stars · 286 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Klein.php is a fast and flexible routing library for PHP 5.3+, inspired by Sinatra. It provides regex-based routing with named parameters, RESTful method handling, and boilerplate methods for building web apps with minimal overhead.
Use cases
- route http requests in a php application
- build a restful api in php
- define routes with named parameters
- handle get post put delete requests
- serve files and xml csv responses
- build a small web app without a full framework
When to choose
- you need a lightweight standalone router for a php project
- you want sinatra-style routing with named parameters
- you are building a small api or microsite without a heavy framework
When to avoid
- you need a full-featured framework with orm, templating, and auth built in
- your project targets modern php versions and you want actively developed routing
- you need async or long-polling request handling
Facets
library · maturity maintenance
routing web-framework http-server middleware web-development backend apis php sinatra-inspired rest-routing micro-framework url-rewriting
1 source
- readme: https://github.com/klein/klein.php · fetched 2026-08-28 · 1ce3f97bc532
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| klein/klein.php | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem