routing
http-kernel
routing | http-kernel | |
---|---|---|
3 | 6 | |
7,542 | 8,043 | |
0.2% | 0.2% | |
7.6 | 9.2 | |
9 days ago | 6 days ago | |
PHP | PHP | |
MIT License | MIT License |
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.
routing
-
olvlvl/composer-attribute-collector v1.2.0
Packages that support attributes for configuration need to roll out their own attribute collector for PHP doesn't provide a feature to query the entire code base for attributes. For example, here's one of the classes that deal with attributes for symfony/routing: https://github.com/symfony/routing/blob/6.2/Loader/AnnotationClassLoader.php. That's what this plugin offers: "a convenient and near zero-cost way to retrieve targets of PHP 8 attributes.". If you're not the maintainer of a package that deals with attributes you probably don't need that.
-
Piko router, a lightweight and blazing fast router for PHP
To demonstrate this search efficiency, I wrote some benchmark tests to compare Piko router against Fastroute and Symfony Router which are references in their domain.
-
Trying to Learn MVC for Laravel but kind of not sold on it , can someone explain/help?
- Symfony's Router
http-kernel
-
Reading bundle configuration inside Symfony Compiler Passes
The compiling of the extension configurations is actually done in a compiler pass. This is called the Merge Pass and is the first compiler pass to be processed. Because of this, once our custom compiler pass reads the configuration of off the extension, we can be sure it is already compiled, cached and ready for use.
-
95% final readonly classes. What is your superpower?
I present you the Symfony ControllerEvent, final class, no interface and a boatload of heavy dependencies.
-
How do you test your code ?
In that regard, someone posted symfony's test suite as an example of good PHPUnit testing. The first file I clicked on demonstrated how worthless (IMO) unit testing can be: https://github.com/symfony/http-kernel/blob/v6.0.8/Tests/CacheClearer/ChainCacheClearerTest.php
-
What to do when it is necessary to modify code in a library managed by a package manager?
The second one was in the Symfony HTTP kernel which is managed by Composer. That file contains this line:
-
How to create a basic Symfony app with routing?
You can also define routes in the method directly:
What are some alternatives?
Fast Route - Fast request router for PHP
http-foundation - Defines an object-oriented layer for the HTTP specification
clean-code-php - :bathtub: Clean Code concepts adapted for PHP
console - Eases the creation of beautiful and testable command line interfaces
slim4-skeleton - A Slim 4 Skeleton
translation - Provides tools to internationalize your application
router - Router implementation for fasthttp
event-dispatcher - Provides tools that allow your application components to communicate with each other by dispatching events and listening to them
php-mvc - A simple PHP model-view-controller framework, built step-by-step as part of the "Write PHP like a pro: build an MVC framework from scratch" course on Udemy.
Guzzle - Guzzle, an extensible PHP HTTP client
dispatch - a tiny library for quick and easy PHP apps
process - Executes commands in sub-processes