Skip to content
/ FirstMezonRouter Public template

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

License

Notifications You must be signed in to change notification settings

BaseMax/FirstMezonRouter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages