bytic / router
Php Framework
2.0.3
2026-11-24 21:07 UTC
Requires
- php: ^8.0
- bytic/inflector: ^1.0|^2.0
- bytic/utility: ^1.0
- symfony/config: ^5.0|^6.0|^7.0|^8.0
- symfony/http-foundation: ^5.0|^6.0|^7.0|^8.0
- symfony/routing: ^5.0|^6.0|^7.0|^8.0
Requires (Dev)
- bytic/config: ^1.0|^2.0
- bytic/console: ^1.0|^2.0
- bytic/container: ^1.0|^2.0
- bytic/http: ^1.0|^2.0
- bytic/phpqatools: ^1.0
- mockery/mockery: ^1.6
- phpbench/phpbench: ^1.0
- phpunit/phpunit: ^9.6
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-master
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.0.x-dev
- 1.0.33
- 1.0.32
- 1.0.31
- 1.0.30
- 1.0.29
- 1.0.28
- 1.0.27
- 1.0.26
- 1.0.25
- 1.0.24
- 1.0.23
- 1.0.22
- 1.0.21
- 1.0.20
- 1.0.19
- 1.0.18
- 1.0.17
- 1.0.16
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.9.13
- 0.9.12
- 0.9.11
- 0.9.10
- 0.9.9
- 0.9.8
- 0.9.7
- 0.9.6
- 0.9.5
- 0.9.4
- 0.9.3
- 0.9.2
- 0.9.1
- dev-develop
This package is auto-updated.
Last update: 2026-11-24 21:08:47 UTC
README
ByTIC Router component
Compatibility
The router supports Symfony Routing, Config and HttpFoundation 5 through 8. Symfony 8 requires PHP 8.4 or newer; Composer selects compatible versions for older PHP releases. Existing Nip routes and helpers remain available, and standard Symfony routes can be loaded, matched and generated alongside them.
For example, a Symfony loader can be passed directly to the router:
use Nip\Router\Router; use Symfony\Component\Routing\Loader\ClosureLoader; use Symfony\Component\Routing\Route; use Symfony\Component\Routing\RouteCollection; $router = new Router(new ClosureLoader(), function () { $routes = new RouteCollection(); $routes->add('article', new Route('/articles/{id}')); return $routes; }); $url = $router->generate('article', ['id' => 42]);
The compatibility workflow tests matching Symfony component versions in an isolated installation. Some optional ByTIC integrations may have narrower Symfony version constraints of their own.