A router for Zend Expressive based on Slim framework's implementation
Open Issues: 0
- php: ^7.1
- acelaya/slim-2-router: ^2.7
- psr/container: ^1.0
- zendframework/zend-expressive-router: ^3.0
- phpunit/phpunit: ^7.0
- squizlabs/php_codesniffer: ^3.1
- zendframework/zend-diactoros: ^1.7.1
A router for Zend Expressive based on Slim framework's implementation.
I decided to do this implementation because Slim's router supports optional params at the beginning of the path, while other Expressive supported routers don't.
Install this package with composer
composer require acelaya/expressive-slim-router
You just need to register the include this package's
ConfigProvider in your project's configuration.
<?php declare(strict_types=1); $aggregator = new ConfigAggregator([ // ... App\ConfigProvider::class, Acelaya\Expressive\ConfigProvider::class, // ... ], '...');
If you are already using zend-component-installer, the
ConfigProvider will be automatically registered for you.