A router for Zend Expressive based on Slim framework's implementation
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.gitattributes
.gitignore
.scrutinizer.yml
.travis.yml
LICENSE
README.md
composer.json
phpunit.xml

README.md

Expressive Slim Router

Build Status Code Coverage Scrutinizer Code Quality Latest Stable Version Total Downloads License

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.

Installation

Install this package with composer

composer require acelaya/expressive-slim-router

Usage

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.