Download the PHP package spiffy/spiffy-route without Composer
On this page you can find all versions of the php package spiffy/spiffy-route. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download spiffy/spiffy-route
More information about spiffy/spiffy-route
Files in spiffy/spiffy-route
Download spiffy/spiffy-route
More information about spiffy/spiffy-route
Files in spiffy/spiffy-route
Vendor spiffy
Package spiffy-route
Short Description Spiffy\Route is a light-weight, HHVM compatible, and dependency free router library.
License BSD-3-Clause
Package spiffy-route
Short Description Spiffy\Route is a light-weight, HHVM compatible, and dependency free router library.
License BSD-3-Clause
Please rate this library. Is it a good library?
Informations about the package spiffy-route
Spiffy\Route
Installation
Spiffy\Route can be installed using composer which will setup any autoloading for you.
composer require spiffy/spiffy-route
Additionally, you can download or clone the repository and setup your own autoloading.
Adding routes
Assembling named routes to url's
Matching routes
Default route parameters
use Spiffy\Route\Router;
$router = new Router();
$router->add('foo', '/foo{/id?}', ['defaults' => ['id' => 1, 'controller' => 'foo-controller']]);
$match = $router->match('/foo/1234');
// output is '1234'
echo $match->get('id');
$match = $router->match('/foo');
// output is '1'
echo $match->get('id');
// output is 'foo-controller'
echo $match->get('controller');
All versions of spiffy-route with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
The package spiffy/spiffy-route contains the following files
Loading the files please wait ....