Search by

crystoline / xpsr-router-sunrise

crystoline

Sunrise router adapter for XPSR's portable route definitions

Package info

github.com/crystoline/xpsr-router-sunrise

Homepage

pkg:composer/crystoline/xpsr-router-sunrise

Statistics

Installs: 9

Dependents: 0

Suggesters: 2

Stars: 0

Open Issues: 0

v0.5.0 2026-10-30 11:06 UTC

This package is auto-updated.

Last update: 2026-10-30 11:16:18 UTC


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