Skip to content

yampee/Routing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yampee Routing: a PHP library to dispatch requests to actions

What is Yampee Routing ?

Yampee Routing is a PHP library that dispatch a request URL to an action. Using Yampee Routing, you are able to create a powerful routing system very quickly.

An example ?

<?php
$router = new Yampee_Routing_Router();

$router->addRoute(new Yampee_Routing_Route(
	'list', '/{page}/{id}/{slug}', 'actionName',
	array(), array('page' => '\d+', 'id' => '\d+', 'slug' => '.+')
));

$currentRoute = $router->find('/1/1258/article-slug');
$currentAction = $currentRoute->getAction();

Documentation

The documentation is to be found in the doc/ directory.

About

Yampee Routing is licensed under the MIT license (see LICENSE file). The Yampee Routing library is developed and maintained by the Titouan Galopin.

About

A PHP 5.2 complete Routing component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published