PHPackages                             daft-framework/daft-psr-router - 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. daft-framework/daft-psr-router

ActiveLibrary[Framework](/categories/framework)

daft-framework/daft-psr-router
==============================

PSR-based variant of signpostmarv/daft-router

v0.4.0(3y ago)0250Apache-2.0PHPPHP ^7.4|^8.0CI failing

Since Apr 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/daft-framework/daft-psr-router)[ Packagist](https://packagist.org/packages/daft-framework/daft-psr-router)[ RSS](/packages/daft-framework-daft-psr-router/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (14)Versions (6)Used By (0)

Copyright 2020 SignpostMarv

daft-psr-router
===============

[](#daft-psr-router)

[![Coverage Status](https://camo.githubusercontent.com/5c63900826bac7ab98dad446344bdfe2e6d4930f6958caf54aaf477d9802d86f/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f646166742d6672616d65776f726b2f646166742d7073722d726f757465722f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/daft-framework/daft-psr-router?branch=main)[![Build Status](https://github.com/daft-framework/daft-psr-router/actions/workflows/php.yml/badge.svg)](https://github.com/daft-framework/daft-psr-router/actions/workflows/php.yml)[![Type Coverage](https://camo.githubusercontent.com/2ec9fd53202a813ab5210bb0f12b9d95de6f8eff8447c438eccc5f6298da147a/68747470733a2f2f73686570686572642e6465762f6769746875622f646166742d6672616d65776f726b2f646166742d7073722d726f757465722f636f7665726167652e737667)](https://shepherd.dev/github/daft-framework/daft-psr-router)

Finally got around to creating a psr-based router. [Because reasons.](https://github.com/daft-framework/daft-router/blob/master/README.md)

Adapts [signpostmarv/daft-router](https://github.com/daft-framework/daft-router) patterns to work with PSR-7, PSR-15, etc.

differences between daft-router &amp; daft-psr-router
-----------------------------------------------------

[](#differences-between-daft-router--daft-psr-router)

### nikic/fast-route

[](#nikicfast-route)

- the [custom RouteCollector](https://github.com/daft-framework/daft-router/blob/master/src/Router/RouteCollector.php) (which served only to provide type hinting) was dropped.
- the route compiler was simplified, with the instantiation + manipulation methods being dropped.
- the requirement for using `FastRoute\cachedDispatcher` was dropped, although it's use is still recommended
- the custom dispatcher was dropped in favour of a final static method that accepts *any* `FastRoute\Dispatcher` instance, strictly checks the result of `FastRoute\Dispatcher::dispatch()`, and returns an object representing the return value.

### psr-15

[](#psr-15)

- daft-router's request interceptors were retained by adding a specific `Psr\Http\Message\ResponseInterface` instance.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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.

###  Release Activity

Cadence

Every ~214 days

Total

4

Last Release

1423d ago

PHP version history (2 changes)v0.1.0PHP ^7.4

v0.3.0PHP ^7.4|^8.0

### Community

Maintainers

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

---

Top Contributors

[![SignpostMarv](https://avatars.githubusercontent.com/u/304403?v=4)](https://github.com/SignpostMarv "SignpostMarv (54 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/daft-framework-daft-psr-router/health.svg)

```
[![Health](https://phpackages.com/badges/daft-framework-daft-psr-router/health.svg)](https://phpackages.com/packages/daft-framework-daft-psr-router)
```

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[slim/slim

Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs

12.2k49.9M1.3k](/packages/slim-slim)[cakephp/authentication

Authentication plugin for CakePHP

1153.6M67](/packages/cakephp-authentication)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)[cakephp/authorization

Authorization abstraction layer plugin for CakePHP

742.2M34](/packages/cakephp-authorization)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)

PHPackages © 2026

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