PHP CS Fixer
larastan
Our great sponsors
PHP CS Fixer | larastan | |
---|---|---|
41 | 7 | |
12,543 | 5,181 | |
1.1% | 1.6% | |
9.8 | 8.9 | |
3 days ago | 7 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.
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.
larastan
-
7 Laravel Packages to Improve Coding Standards and Reduce Bugs
Larastan is a Coding Standards Fixer tool, It's a PHPStan wrapper for Laravel. Larastan focuses on finding errors in your code. It catches whole classes of bugs even before you write tests for the code.
-
Underestimated PHP
Static analysis or Laravel-lovers
-
Modern PHP practices... where to start, what to look out for?
Static Analysis Tools - there are a number of tools that help you to manage code style (PHPCS, PHP-CSFixer, and a new one, Laravel Pint), as well as tools to analyse the "correctness" of your code (Psalm, PHPstan, in particular LaraStan).
-
10 Laravel packages that might save your day
7. nunomaduro/larastan
-
Matt Brown, the creator of psalm, stops working at Vimeo (and stops working with PHP)
https://github.com/nunomaduro/larastan should help with this specifically
-
Larastan 0.7.3 is released with a rule that can check Laravel Octane compatibility
New 0.7.3 release includes a rule that can check Laravel Octane compatibility of your application. It basically automates the things mentioned in the official docs. You can give it a try now! And let me know what do you think!
-
I am attracted to Symfony a lot while I already develop very well with Laravel. Should I also learn Symfony?
again, not trying to get into a symfony vs laravel debate, but you can do static analysis https://github.com/nunomaduro/larastan
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!
pint - Laravel Pint is an opinionated PHP code style fixer for minimalists.
Rector - Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
laravel-ide-helper - IDE Helper for Laravel
GrumPHP - A PHP code-quality tool
psalm-plugin-laravel - A Psalm plugin for Laravel
PHP-Parallel-Lint - This tool check syntax of PHP files faster than serial check with fancier output.
phpinsights - 🔰 Instant PHP quality checks from your console
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.
enlightn - Your performance & security consultant, an artisan command away.