Skip to content

Latest commit

 

History

History
67 lines (49 loc) · 1015 Bytes

README.md

File metadata and controls

67 lines (49 loc) · 1015 Bytes

First Mezon-Router

A easy-to-use and ready example to use PHP-based Mezon Router.

Why?

It's fastest PHP router!

More benchmarks can be found here.

Installation

Just type:

$ composer require mezon/mezon
or
$ composer require mezon/router

Reasons to use

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

Using

$router->callRoute('/');
$router->callRoute('/100-test.html');

Output

/

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
)

TODO

Add example to use mezon router without composer.