A easy-to-use and ready example to use PHP-based Mezon Router.
It's fastest PHP router!
More benchmarks can be found here.
Just type:
$ composer require mezon/mezon
or
$ composer require mezon/router
The mezon/router is:
- 25 times faster than klein/klein router
- 7 to 15 times faster than Symfony router
- 30 to 50 times faster than Laravel router
- 1.5 times faster than nikic/fast-route
$router->callRoute('/');
$router->callRoute('/100-test.html');
/
index
Hello, World!
/100-test.html
100-test.html
Array
(
[digit] => 100
[name] => test
)
/28959485-blondes-bitches-prefer-black-cocks-14.html
28959485-blondes-bitches-prefer-black-cocks-14.html
Array
(
[digit] => 28959485
[name] => blondes-bitches-prefer-black-cocks-14
)
Add example to use mezon router without composer.