Rector
Instant Upgrades and Automated Refactoring of any PHP 5.3+ code (by rectorphp)
phan
Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness. (by phan)
Our great sponsors
Rector | phan | |
---|---|---|
112 | 8 | |
8,207 | 5,495 | |
1.8% | 0.1% | |
9.9 | 8.2 | |
1 day ago | about 2 months ago | |
PHP | PHP | |
MIT License | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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
Posts with mentions or reviews of Rector.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-03-15.
-
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.
phan
Posts with mentions or reviews of phan.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-29.
-
7.4 to 8.x upgrade help
Besides what others have already advised, you can also get Phan to scan your project. Set the target to 8.1 and let it run its analysis. Check GitHub repo and docs there for more verbose instructions: https://github.com/phan/phan/
-
Need to write an invoicing script. The old one is PHP/mySQL and nearly 20 years old. Yes, really. What framework should I use?
Phan, php7mar, and php-short-array-syntax-converter for a bonus
-
7 Laravel Packages to Improve Coding Standards and ReduceĀ Bugs
Phan is a static analyzer for PHP. Phan prefers to avoid false positives and attempts to prove incorrectness rather than correctness.
-
Introducing Phirs (0.1.0), a cross-platform and well-tested user directory path provider library, including cache and config paths
I don't think so. Phoronix Test Suite is a big example. Plus, in the PHP community itself, there are so many CLI apps: Composer, PHPUnit, static analyzers like Phan, just to name a few. Symfony Console component has more than 9k stars, so this should mean PHP is a capable tool for CLI apps.
-
Is there any software I can use to check my php code? Preferably CLI. Thanks in advance!
PHPStan as mentioned, there's also psalm and Phan.
-
Emotional Rage: any static-typed PHP compilers?
You can use a static analyzer like Phan to lint the project.
-
What is a good tool to check codebase compatibility with PHP 8?
- Phan (https://github.com/phan/phan) seems that it can check for backward compatibility but I've yet to find a way to configure it for forward-compatibility
-
A minimal Drupal 9 local development environment
Phan
What are some alternatives?
When comparing Rector and phan you can also consider the following projects:
PHP CS Fixer - A tool to automatically fix PHP Coding Standards issues
PHPStan - PHP Static Analysis Tool - discover bugs in your code without running it!
Psalm - A static analysis tool for finding errors in PHP applications
Phpactor - Mainly a PHP Language Server with more features than you can shake a stick at
PHP Code Sniffer - PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
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.
PHPCompatibility - PHP Compatibility check for PHP_CodeSniffer