AutoRoute
Automatically maps HTTP requests to PHP action classes. (by pmjones)
AutoRoute | php-router-benchmark | |
---|---|---|
10 | 2 | |
190 | 1 | |
- | - | |
1.5 | 3.6 | |
about 1 year ago | over 2 years ago | |
PHP | PHP | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
AutoRoute
Posts with mentions or reviews of AutoRoute.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-22.
-
How do router frameworks efficiently handle 1000s of routes?
Also if you use a convention-based approach to your routes instead of hardcoding them you can support any number of routes. Something like how pmjones/AutoRoute and CodeIgniter's AutoRouting work.
-
A Faster Router System in PHP
You may wish to take a look at AutoRoute. I am the lead, and you can see benchmarks for it here.
-
PSX - Build fully typed REST APIs
This sounds remarkably similar to AutoRoute.
-
Building the Fastest PHP Router Ever
Interesting; AutoRoute is 2x faster than FastRoute in common cases; see benchmark. And it's pretty feature-filled at that.
-
Why I prefer a routing config file to Controller annotations
There is another alternative: AutoRoute automatically maps incoming HTTP requests (by verb and path) to PHP action classes in a specified namespace. No more route files or annotations/attributes.
-
Make your own Framework: (The Fastest) Router Edition
Might be nice to see AutoRoute included in the mix; it too is faster than FastRoute, and has some interesting additional features.
-
The case for route attributes
Not to yammer on about it, but that is exactly what AutoRoute does.
-
Piko router, a fast router for PHP based on radix tree
Nice! I'd be interested to see how it fares against AutoRoute -- benchmarks against FastRoute here.
-
Weekly "ask anything" thread
You might additionally appreciate this: https://github.com/pmjones/AutoRoute
php-router-benchmark
Posts with mentions or reviews of php-router-benchmark.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-10-29.
-
Modern PHP features explained - PHP 8.0 and 8.1
You can see here (scroll down to the table) that match is twice as fast as isset. You can also see that nested matches are barely slower than a single match. That means for example by chaining them into HTTP method lookup, then maybe content type lookup and so on, makes them insanely fast. The router benchmarked on that site is built with that behaviour in mind.
-
Make your own Framework: (The Fastest) Router Edition
Nevertheless I've written a summary of the benchmarks on Github. I'd really love some feedback on both the summary, the benchmarks, and maybe even my concept and the code itself. I know it's not pretty right now (mostly written in Templates), but I'm cleaning that up.
What are some alternatives?
When comparing AutoRoute and php-router-benchmark you can also consider the following projects:
Fast Route - Fast request router for PHP
AutoRoute-benchmark - Benchmarking for AutoRoute.
Laravel - The Laravel Framework.
RiafCore
php-jwt - PHP package for JWT
Ratchet - Asynchronous WebSocket server
app - App package for the Apex framework.
Slim Framework - Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs.
Essence
PSX Framework - PSX is an innovative PHP framework dedicated to build fully typed REST APIs.
AutoRoute vs Fast Route
php-router-benchmark vs AutoRoute-benchmark
AutoRoute vs Laravel
php-router-benchmark vs RiafCore
AutoRoute vs php-jwt
AutoRoute vs AutoRoute-benchmark
AutoRoute vs Ratchet
AutoRoute vs RiafCore
AutoRoute vs app
AutoRoute vs Slim Framework
AutoRoute vs Essence
AutoRoute vs PSX Framework