crystoline / xpsr-router-sunrise
Sunrise router adapter for XPSR's portable route definitions
v0.5.0
2026-10-30 11:06 UTC
Requires
- php: ^8.4
- crystoline/xpsr-framework: ^0.5@dev
- psr/http-message: ^1.1
- sunrise/http-router: ^2.16
Requires (Dev)
- nyholm/psr7: ^1.8.2
- phpunit/phpunit: ^12.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Sunrise router adapter for XPSR's portable route definitions. It is mainly a migration path for applications written against the earlier Sunrise-based XPSR.
php xpsr setup --router=sunrise --install-dependencies
# or: composer require crystoline/xpsr-router-sunrise, then set ROUTER_ADAPTER=sunrise
Route files stay the same whichever adapter you choose. Sunrise 2.x requires psr/http-message 1.x, so installing this adapter keeps the application on that major version.
The adapter passes XPSR's shared router contract suite (Crystoline\Xpsr\Testing\RouterContractTestCase):
composer install vendor/bin/phpunit