AutoRoute
app
AutoRoute | app | |
---|---|---|
10 | 6 | |
190 | 0 | |
- | - | |
1.5 | 6.3 | |
about 1 year ago | 2 months ago | |
PHP | PHP | |
MIT License | GNU General Public License v3.0 or later |
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
-
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
app
-
Creating a console app - for a SaaS API
For the CLI tool itself, you'd be looking at: https://github.com/apexpl/app/
- Piko router, a fast router for PHP based on radix tree
-
Let's Debate, SVN over git?
You're right, in the "develop Your First Package" guide I use the get method, which is only available via Guzzle and it's not PSR-18 compliant. I did that for the sake of brevity, because I figured anyone viewing that guide will be using the default install which comes with Guzzle. If you look through the App package though (https://github.com/apexpl/app/) you'll see it only ever uses the PSr-18 compliant sendRequest method. Although Apex does come with Guzzle by default, developers are more than welcome to modify the ~/boot/container.php file and change that one entry out to any PSR-18 compliant implementation they would like such as Httpful or whatever, and I promise Apex will continue humming along just fine.
-
[PHP] - pre-mature, but Apex v2, and let's see what happens
Please note, I didn't just pull SVN out of my ass, and a whole lot of planning and research went into this. Take a look at the code at https://github.com/apexpl/app/ and you'll see for yourself this is solid code. Are you by chance a PHP developer? If so, feel free to give this a test spin via Docker. The design is horrendous at the moment, but the network is online and solid -- https://apexpl.io/guides/develop_your_first_package
What are some alternatives?
Fast Route - Fast request router for PHP
Silly - Silly CLI micro-framework based on Symfony Console
Laravel - The Laravel Framework.
Slim Framework - Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs.
php-jwt - PHP package for JWT
phpmicro - micro sfx SAPI for php (wip, may force push)
php-router-benchmark
Lean and Mean Docker containers - Slim(toolkit): Don't change anything in your container image and minify it by up to 30x (and for compiled languages even more) making it secure too! (free and open source)
AutoRoute-benchmark - Benchmarking for AutoRoute.
Laravel-Zero - A PHP framework for console artisans
Ratchet - Asynchronous WebSocket server
box - 📦🚀 Fast, zero config application bundler with PHARs.