psalm-plugin-laravel
PHP-CS-Fixer
Our great sponsors
psalm-plugin-laravel | PHP-CS-Fixer | |
---|---|---|
5 | 3 | |
285 | 11,621 | |
2.5% | - | |
9.0 | 10.0 | |
28 days ago | over 1 year 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.
psalm-plugin-laravel
-
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.
-
What’s Next: PhpStorm 2022.3 Roadmap
Thanks. Num.2 is this about https://github.com/psalm/psalm-plugin-laravel or applicable to other projects? Num.3 - isn't that how it is now?
-
[Poll] Do you use preloading in your applications?
Also disagree with the static analysis take - we have dozens of Laravel applications that pass Psalm's static analysis with the strictest settings. All it takes is the Laravel plugin and some DocBlocks here and there.
-
Static Analysis With Psalm
Psalm v3 came with a new plugin framework that makes authoring integrations for third party packages much easier. That, with Barry's IDE Helper made the Laravel Plugin a reality according to Matt.
- Would you be interested in a Lightweight Open Source Laravel Eloquent ORM like library
PHP-CS-Fixer
-
Laravel code-quality tools
If you don't want to use any of those presets, your only option is to specify the all the rules by hand. Pint is built on top of PHP CS Fixer so you can use all the rules that it has. You can use the PHP-CS-Fixer configurator to cherry-pick your own set of rules.
-
💅 Automatically Format PHP Code
1.1. Install the package php-cs-fixer
-
how can I know if I am following PSR standards
But I think in most cases they just mean follow the Coding Standard, Which still can be PSR-1, PSR-12 or the new PER Coding Standard. In this case I just recommend your company to add php-cs-fixer to the codebase to apply coding standards rules you want to follow. Good it it does not just lint it it will already fix it.
What are some alternatives?
larastan - ⚗️ Adds code analysis to Laravel improving developer productivity and code quality.
tlint - Tighten linter for Laravel conventions.
laravel-ide-helper - IDE Helper for Laravel
coding-standard - Slevomat Coding Standard for PHP_CodeSniffer provides many useful sniffs
PHP Noise - A starter-kit for your PHP project.
PHP Parser - A PHP parser written in PHP
psalm-psr-container-plugin - Let Psalm understand better psr11 containers
food-order-gh-action-test
enlightn - Your performance & security consultant, an artisan command away.
laravel-code-style - Automatic code formatting for Laravel projects
functional - PHP Functional Programming library. Monads, common use functions and generic collections.
husky-php - Git hooks made easy!! 🎉PHP is combined with composer to implement functionality similar to js's NPM module husky