container
fig-standards
container | fig-standards | |
---|---|---|
3 | 47 | |
9,877 | 12,509 | |
0.1% | 0.1% | |
2.5 | 7.7 | |
3 months ago | 4 days ago | |
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.
container
-
Creating an application in Yii3.
Container interface. This repository holds all interfaces related to PSR-11 (Container Interface).
-
PSR-16 and Exceptions
Correct. If it is an exception, it should be a subtype of an exception (Throwable), otherwise it cannot be used in the `throws` annotation. I guess this discussion was made for historical reasons, concrete all PHP 5.x versions. Since PHP 7, we are able to extend interfaces from interfaces, e.g. Throwable. The same "issue" also applies to the PSR-11 exception interface. Read more: Extending Throwable for exception interfaces
-
Why Laravel requires `psr/container` package?
From the About section of psr/container package on GitHub:
fig-standards
- Moving PHP forward through collaboration and standards
-
A workaround to handle PSR-4 && WordPress Coding Standards at same time
The namespaces and class names must follow this example.
-
Materials/Topics for Senior dev new to PHP
I would familiarize yourself with the following PHP standards: https://www.php-fig.org
-
Autoloading, coding standards and file structure in WordPress plugin development
The PHP Standard Recommendation, or PSR for short, from the aforementioned PHP-FIG.
- PHP-FIG considering raising money to cover $30/year costs
- PHP-FIG planning to raise money to cover $30/year costs
-
PSR-4 Autoloading Woes
That's what happens if you use a PSR-4 autoloader and not utilise PSR-4 in your project structure ๐ So either use PSR-0 or properly use PSR-4.
- PHPDoc, PSR-5 and commenting inside the code
- PHP-Fig Is Down
-
I donโt get all the hate for PHP and at this point I am too afraid to ask.
PHP really "got it's act together" in my view when packagist and composer (which are PHP's equivalent of npm) became mainstream and with the release of the PSR community standards. We were admittedly a little behind the curve with regards to package managers but with standardised formats and not having to copy and paste zip file libraries anymore, PHP received a new lease of life.
What are some alternatives?
console - Eases the creation of beautiful and testable command line interfaces
sulu - Core framework that implements the functionality of the Sulu content management system
PHP Dotenv - Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.
laravel-totem - Manage Your Laravel Schedule From A Web Dashboard
http-server-handler - Interface for PSR-15 server request handler
Symfony - The Symfony PHP framework
headless-wp-starter - ๐ช WordPress + React Starter Kit: Spin up a WordPress-powered React app in one step
Brick\Money - A money and currency library for PHP
app - Yii3 application template
corcel - Use WordPress backend with Laravel or any PHP application
Rector - Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
Plates - Native PHP template system