Psalm
PHPCompatibility
Our great sponsors
Psalm | PHPCompatibility | |
---|---|---|
45 | 19 | |
5,428 | 2,120 | |
0.6% | 1.1% | |
9.9 | 9.0 | |
5 days ago | 3 days ago | |
PHP | PHP | |
MIT License | GNU Lesser General Public License v3.0 only |
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.
Psalm
-
Laravel code-quality tools
Psalm is a static analysis tool for PHP. Much like PHPStan is to Larastan, Psalm has a plugin called Laravel Psalm that allows you to easily use it in Laravel projects.
- PHP 8.3
-
PHP libraries and tools
Psalm: A static analysis tool for finding errors in PHP applications. Plugins: boesing/psalm-plugin-stringf: Psalm plugin to provide more details for sprintf, printf, sscanf and fscanf functions. hectorj/safe-php-psalm-plugin: vimeo/psalm plugin for thecodingmachine/safe. marartner/psalm-no-empty: Psalm plugin to detect usage of empty(). marartner/psalm-strict-equality: Psalm plugin to enforce strict equality. psalm/plugin-phpunit: A PHPUnit plugin for Psalm. psalm/plugin-symfony: Psalm Plugin for Symfony. weirdan/doctrine-psalm-plugin: Stubs to let Psalm understand Doctrine better. ghostwriter/psalm-plugin: Provides an ALL-IN-ONE plugin for Psalm
-
PHP-Tokio – Use any async Rust library from PHP
PHP 8 is the best version of PHP yet, and the main reason why it's so good is precisely because it got rid of a huge amount of ugly, legacy behavior.
Upgrading a codebase to PHP 8 is not an insurmountable task, I've upgraded our 1 million SLOC codebase at work in just a few weeks, with the help of tools like https://psalm.dev and our own strict coding standard.
- Devs interesados en aprender
-
Top 6 PHP code quality tools 2023
Psalm is a static analysis tool specifically designed for PHP. It performs advanced type inference and checks for various types of errors, including type errors, undefined variables, incorrect function calls, and more. It provides comprehensive code analysis and helps improve code quality and maintainability. Documentation: You can find more information about Psalm, including installation instructions and usage details, in the official repository: Psalm Repository
-
Avoiding empty() in PHP
vimeo/psalm
- [Laravel] Maintenant que PHPStorm prend en charge le Psaume et le PHPSTAN, lequel utilisez-vous / recommandez-vous pour les projets Laravel?
- TIL how PHP type hinting works
-
Templates available in Yii3.
Static analysis - Psalm .
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
What are some alternatives?
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
phan - Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness.
PHP Code Sniffer - PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
PHP CS Fixer - A tool to automatically fix PHP Coding Standards issues
Qodana - 📝 Source repository of Qodana Help
can-i-php - caniuse.com but for PHP - a searchable list of new and deprecated features in recent PHP versions
php7mar - PHP 7 Migration Assistant Report (MAR)