Rector
PHP CS Fixer
Our great sponsors
Rector | PHP CS Fixer | |
---|---|---|
112 | 41 | |
8,207 | 12,543 | |
1.8% | 1.1% | |
9.9 | 9.8 | |
8 days ago | 4 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.
Rector
-
Rector keeps your PHP code base fresh and perfect
As part of the journey to PHP perfection, you should embrace Rector. It's a amazing, free, and open-source tool for migrations, code quality, type coverage, pushing PHPStan to the highest levels, and yes, it can even auto-fix your existing code! It seamlessly integrates into the CI process, making your development workflow smoother than ever.
-
Starting with Rector PHP: Improving Your PHP Code with Automation
Website: https://getrector.com/
-
What Would You Do? PHP 8 and WordPress Theme
If you want a speed boost, there's a tool: https://github.com/rectorphp/rector
-
How to investigate PHP 8.0 compatibility in my application
Rector can help automating some changes.
-
Materials/Topics for Senior dev new to PHP
Yep... Rector
-
Upgrading PHP 7.4 to 8.0
I'd also recommend taking a look at Rector to help automate some of this.
-
Avoiding empty() in PHP
rector/rector
-
7.4 to 8.x upgrade help
https://github.com/rectorphp/rector might be useful.
-
Is it too painful to go from 5.2 to 8.2?
You could give rector a try
-
PHP Deprecated: mysql_connect()
If you want to upgdate an old project quickly, I recommend checking out Rector, which, among other uses, can quickly update code from older PHP versions.
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.
What are some alternatives?
PHPStan - PHP Static Analysis Tool - discover bugs in your code without running it!
PHP Code Sniffer - PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
Phpactor - Mainly a PHP Language Server with more features than you can shake a stick at
GrumPHP - A PHP code-quality tool
Psalm - A static analysis tool for finding errors in PHP applications
PHP-Parallel-Lint - This tool check syntax of PHP files faster than serial check with fancier output.
PHPCompatibility - PHP Compatibility check for PHP_CodeSniffer
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.
rector-laravel - Rector upgrades rules for Laravel
magento-coding-standard - Magento Coding Standard