PHPCompatibility
symplify
Our great sponsors
PHPCompatibility | symplify | |
---|---|---|
19 | 2 | |
2,121 | 633 | |
1.2% | - | |
9.0 | 7.3 | |
5 days ago | about 1 year ago | |
PHP | PHP | |
GNU Lesser General Public License v3.0 only | 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.
PHPCompatibility
- Update php?
-
What automated tools are there for upgrading old PHP code to the latest PHP versions?
Code Sniffer Compatibility
-
Tools to analyse version-specific PHP code?
Check https://github.com/PHPCompatibility/PHPCompatibility It's list of PHPCodeSniffer sniffs that can be configured to check for version compatibility.
-
Weekly help thread
Use PHP compatibility checker
- What simple tools are available to check which modules in a Drupal 7 installation need to be upgraded to PHP 8 compatible code?
-
Php 8.1 on windows all xml functions stopped worked as undefined ?
The PHPCompatibility ruleset for CodeSniffer may help you find the problem: (Note: This ruleset is incomplete and won't find all compatibility problems)
-
change versions
If you are well-versed in programming then you might wanna take a look at PHPCompatibility. It will scan your codebase at different PHP version rulesets to point out code that needs upgrading. You will be needing PHPCS for this.
-
Tool to assist with PHP migration (Rector?)
I would use either PHPStan or PHP CodeSniffer + PHPCompatibility
-
PHP8 is pushing me over the edge ...
Another helpful tool is PHP_CodeSniffer with the PHP Compatibility Coding Standard-ruleset.
-
Upgrading existing code
PHP-Compatibility CodeSniffer ruleset
symplify
- PHPStan 1.8 now supports Rules to Analyze the Whole Codebase
-
4 Configurable Phpstan Rules That Help Rector
The implementation is actually very simple in PHPStan and it's already done. This is 30 relevant lines. https://github.com/symplify/symplify/blob/e7150b7a902948ad607a22f8a7fadeae4308fbcb/packages/phpstan-rules/src/Rules/CheckTypehintCallerTypeRule.php#L136-L177
What are some alternatives?
Rector - Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
easy-coding-standard - The Easiest way to add coding standard to your PHP project
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.
phpqa - Docker image that provides static analysis tools for PHP
PHP Code Sniffer - PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
monorepo-split-github-action - Github Action for Monorepo Split
PHP CS Fixer - A tool to automatically fix PHP Coding Standards issues
drupal-check - Check Drupal code for deprecations and discover bugs via static analysis
can-i-php - caniuse.com but for PHP - a searchable list of new and deprecated features in recent PHP versions
magento-coding-standard - Magento Coding Standard