http-kernel
console
http-kernel | console | |
---|---|---|
6 | 4 | |
8,043 | 9,647 | |
0.2% | 0.1% | |
9.2 | 7.7 | |
about 7 hours ago | 14 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.
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:
console
-
Creating an application in Yii3.
Symfony console component. The Console component eases the creation of beautiful and testable command line interfaces.
-
A minimal library that defines primitive building blocks of PHP code.
I have to disagree. To me, declaring a method via the @method tag (in rare cases) is equivalent to actually declaring it in a class/interface. Due to PHP limitations, the obvious lack of generics, and what I wrote earlier, I simply couldn't do it any other way. Take eg. HttpClientInterface from symfony/http-client-contracts or InputInterface from symfony/console, they had different reasons but the outcome is the same.
-
Introducing Phirs (0.1.0), a cross-platform and well-tested user directory path provider library, including cache and config paths
I don't think so. Phoronix Test Suite is a big example. Plus, in the PHP community itself, there are so many CLI apps: Composer, PHPUnit, static analyzers like Phan, just to name a few. Symfony Console component has more than 9k stars, so this should mean PHP is a capable tool for CLI apps.
-
Administrando proyectos PHP con Composer
{ "name": "symfony/console", "version": "v4.4.8", "source": { "type": "git", "url": "https://github.com/symfony/console.git", "reference": "10bb3ee3c97308869d53b3e3d03f6ac23ff985f7" }, }
What are some alternatives?
http-foundation - Defines an object-oriented layer for the HTTP specification
drush - Drush is a command-line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those who spend their working hours hacking away at the command prompt.
translation - Provides tools to internationalize your application
polyfill-mbstring - Symfony polyfill for the Mbstring extension
event-dispatcher - Provides tools that allow your application components to communicate with each other by dispatching events and listening to them
process - Executes commands in sub-processes
Guzzle - Guzzle, an extensible PHP HTTP client
routing - Maps an HTTP request to a set of configuration variables
gtk - php ffi gtk