2017 © Pedro Peláez
 

library silex-routing

Silex-Routing provides advanced routing for Silex through connecting symfony-cmf/Routing with Silex.

image

project-a/silex-routing

Silex-Routing provides advanced routing for Silex through connecting symfony-cmf/Routing with Silex.

  • Friday, December 8, 2017
  • by danez
  • Repository
  • 5 Watchers
  • 11 Stars
  • 1,494 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 11 Versions
  • 1 % Grown

The README.md

Silex-Routing

Serviceprovider for advanced and dynamic routing in Silex

Latest Stable Version Total Downloads License Build Status Coverage Status SensioLabsInsight, (*1)

Description

Silex-Routing allows you to define custom and multiple routers for Silex. This is especially useful when working with dynamic routes, which are not known while writing the code (e.g. URLs stored in database)., (*2)

This implementation works for both, matching and generating of URLs., (*3)

The advanced routing is achieved by connecting Silex with symfony-cmf/Routing., (*4)

Installation

The recommended way to install Silex-Routing is through composer. Just create a composer.json file and run the php composer.phar install command to install it:, (*5)

{
    "require": {
        "project-a/silex-routing": "dev-master"
    }
}

Alternatively, you can download the silexrouting.zip file and extract it., (*6)

Upgrade from 1.0 to 2.0

Version 2 is not backward compatible with version 1. Make sure to carefully read the [changelog][2]., (*7)

Usage

Using Silex-Routing is very simple. All you need to do is register the provided RoutingServiceProvider and afterwards add all your custom routers (RouterInterface)., (*8)

$app = new \Silex\Application();
$app->register(new \ChiliLabs\Silex\Provider\RoutingServiceProvider());

$router2 = new \Acme\Silex\MySpecialRouter();
$app['routers']->add($router);
...

There is a router in this repository named SilexRouter, that handles the default routing behavior of Silex. Registering this router ensures, that all routes added through the main Silex application still work. (This router is not registered by default.), (*9)

Since version 2.0 of project-a/silex-routing the url generation is included in the RoutingServiceProvider and no special UrlGeneratorServiceProvider is needed anymore., (*10)

Tests

To run the test suite, you need composer., (*11)

$ php composer.phar install --dev
$ phpunit

License

Silex-Routing is licensed under the MIT license., (*12)

The Versions

08/12 2017

dev-master

9999999-dev

Silex-Routing provides advanced routing for Silex through connecting symfony-cmf/Routing with Silex.

  Sources   Download

MIT

The Requires

 

The Development Requires

06/09 2017

v2.0.1

2.0.1.0

Silex-Routing provides advanced routing for Silex through connecting symfony-cmf/Routing with Silex.

  Sources   Download

MIT

The Requires

 

The Development Requires

06/06 2016

v2.0.0

2.0.0.0

Silex-Routing provides advanced routing for Silex through connecting symfony-cmf/Routing with Silex.

  Sources   Download

MIT

The Requires

 

17/04 2016

1.0.x-dev

1.0.9999999.9999999-dev

Silex-Routing provides advanced routing for Silex through connecting symfony-cmf/Routing with Silex.

  Sources   Download

MIT

The Requires

 

10/12 2014

v1.0.6

1.0.6.0

Silex-Routing provides advanced routing for Silex through connecting symfony-cmf/Routing with Silex.

  Sources   Download

MIT

The Requires

 

18/11 2014

v1.0.5

1.0.5.0

Silex-Routing provides advanced routing for Silex through connecting symfony-cmf/Routing with Silex.

  Sources   Download

MIT

The Requires

 

The Development Requires

24/04 2014

v1.0.4

1.0.4.0

Silex-Routing provides advanced routing for Silex through connecting symfony-cmf/Routing with Silex.

  Sources   Download

MIT

The Requires

 

The Development Requires

23/01 2014

v1.0.3

1.0.3.0

Silex-Routing provides advanced routing for Silex through connecting symfony-cmf/Routing with Silex.

  Sources   Download

MIT

The Requires

 

The Development Requires

17/11 2013

v1.0.2

1.0.2.0

Silex-Routing provides advanced routing for Silex through connecting symfony-cmf/Routing with Silex.

  Sources   Download

MIT

The Requires

 

The Development Requires

30/10 2013

v1.0.1

1.0.1.0

Silex-Routing provides advanced routing for Silex through connecting symfony-cmf/Routing with Silex.

  Sources   Download

MIT

The Requires

 

The Development Requires

12/09 2013

v1.0.0

1.0.0.0

Silex-Routing provides advanced routing for Silex through connecting symfony-cmf/Routing with Silex.

  Sources   Download

MIT

The Requires

 

The Development Requires