PHP CS Fixer
laravel-code-style
DISCONTINUED
Our great sponsors
PHP CS Fixer | laravel-code-style | |
---|---|---|
41 | 1 | |
12,509 | 413 | |
1.2% | - | |
9.8 | 5.7 | |
5 days ago | about 2 years 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 š
-
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.
-
How do you feel about laravel/pint?
Do you think it should have been just a php-cs-fixer preset, just like the symfony & PSR ones? Well it kinda is, but with extra steps. Also is there a way to use the existing presets in pint? Like the migration ones - https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/master/src/RuleSet/Sets/PHP81MigrationSet.php ?
-
Underestimated PHP
Coding Standards Fixer
laravel-code-style
-
How do you enforce a consistent code style in your projects?
You donāt need to configure all these rulesets for phpcsfixer. Just use some presets and add/diable rules if it does not fit your style or use the laravel preset: https://github.com/matt-allan/laravel-code-style
What are some alternatives?
PHP Code Sniffer - PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
PHPStan - PHP Static Analysis Tool - discover bugs in your code without running it!
Rector - Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
GrumPHP - A PHP code-quality tool
PHP-Parallel-Lint - This tool check syntax of PHP files faster than serial check with fancier output.
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.
magento-coding-standard - Magento Coding Standard
pint - Laravel Pint is an opinionated PHP code style fixer for minimalists.
Psalm - A static analysis tool for finding errors in PHP applications
phan - Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness.
PHP Parser - A PHP parser written in PHP