PHP CS Fixer
PHP-DI
Our great sponsors
PHP CS Fixer | PHP-DI | |
---|---|---|
41 | 13 | |
12,543 | 2,625 | |
1.1% | 0.6% | |
9.8 | 6.3 | |
4 days ago | about 22 hours 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.
PHP CS Fixer
-
8 Essential Tools Every PHP Developer Needs
PHP-CS-Fixer automatically fixes PHP coding standard issues, maintaining a clean codebase and adhering to coding standards. It can be integrated into the development workflow to ensure all code complies with defined standards.
-
Avoiding empty() in PHP
friendsofphp/php-cs-fixer
- PHP-CS-Fixer doesn't fix a lot of things?
- Laravel measuring system?
-
PHP in 2023 - stitcher.io
While you're at it, also include code-style checkers like phpcs, phpmd and/or php-cs-fixer
-
Write a PHP library supports PHP 5.6 to 8.1
I run two tools for this - php-cs-fixer on PHP 5.6 and the built-in syntax checker(php -l).
-
Featherweight library to write to slack channel
You can use this library to help automate this: https://github.com/FriendsOfPHP/PHP-CS-Fixer 😊
-
How I was able to install php-cs-fixer. Vscode + Linux machine
To be bit a elaborate and for a proper updated installtion process, here is what I did: I used the [latest versio]n(https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/tag/v3.10.0) of php cs fixer then entered the command that followed to install php-cs-fixer.
-
Revisiting GitLab as a PHP Developer
PHP CS Fixer is able to generate a GitLab formatted report which GitLab can use to show you any new violations in the code or even if code style violations have been tackled.
-
7 Laravel Packages to Improve Coding Standards and Reduce Bugs
Laravel Pint is an opinionated PHP code style fixer for minimalists. Pint is built on top of PHP-CS-Fixer and makes it simple to ensure that your code style stays clean and consistent. Pint is a new addition to the Laravel framework.
PHP-DI
-
Reusing PHP code (with GIFs)
You may read PHP-DI to dig further.
-
In your opinion, which existing PHP framework can become as popular as Symphony or Laravel?
This one is compliant with PSR-11 and super easy to use: https://php-di.org/
- Slim, possívelmente o framework ideal para quem vem do Golang
-
7 WordPress Best Practices For Real Engineers
PHP-DI
-
Build a Speech-to-Text Web Application with Rev AI and PHP (Part 1)
PHP-DI: a PHP dependency injection container
-
Running non-blocking A/B tests, feature flags with Laravel, PHP
Please, visit the repository for configuration instructions. The package wouldn't work without DI. So, if you're not using DI yet, try PHP-DI.
-
What PHP book would you most like to see written?
With a real DI system https://github.com/PHP-DI/PHP-DI
-
Searching alternative to Singleton and Dependecy Injection
Your service locator can cache the generated objects or create them on demand every time. How that is handled is up to your DI/SL library. For example, PHP\DI will cache a created object and pass the same instance to everything unless you tell it otherwise.
-
When Symfony Http Kernel is a Too Big Hammer to Use
What about using php-di?
- How to properly write a database class in php with singleton pattern?
What are some alternatives?
PHP Code Sniffer - PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
Pimple - A small PHP dependency injection container
PHPStan - PHP Static Analysis Tool - discover bugs in your code without running it!
Symfony DI - Allows you to standardize and centralize the way objects are constructed in your application
Rector - Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
Container - Small but powerful dependency injection container
GrumPHP - A PHP code-quality tool
Auryn - IoC Dependency Injector
PHP-Parallel-Lint - This tool check syntax of PHP files faster than serial check with fancier output.
Nette DI - 💎 Flexible, compiled and full-featured Dependency Injection Container with perfectly usable autowiring and support for all new PHP 7 features.
PHP Mess Detector - PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD. PHPMD can be seen as an user friendly frontend application for the raw metrics stream measured by PHP Depend.
bref - Serverless PHP on AWS Lambda