This package is abandoned and no longer maintained. No replacement package was suggested.

FuelPHP Framework routing

2.0.0 2015-01-01 15:48 UTC

This package is auto-updated.

Last update: 2023-01-30 20:27:26 UTC


Build Status Code Coverage Quality Score

FuelPHP Framework routing.

Sample code


include "./vendor/autoload.php";

use Fuel\Routing\Router;

$router = new Router;
$router->setType('string', Router::MATCH_ANY);
$router->setType('num', Router::MATCH_NUM);
$router->setType('int', Router::MATCH_NUM);

		'controller' => 'SomeController',
		'action' => 'someAction',

		'controller' => 'UserController',
		'action' => 'create',

		'controller' => 'UserController',
		'action' => 'index',

		'controller' => 'UserController',
		'action' => 'update',

var_dump($router->translate('users/123', 'PUT'));

Besides defining the filter per route definition manually, you can also define an autofilter, which is something callable that will convert the translated route into a controller and action.


Thank you for considering contribution to FuelPHP framework. Please see CONTRIBUTING for details.


The MIT License (MIT). Please see License File for more information.