larastan
PHP Code Sniffer
larastan | PHP Code Sniffer | |
---|---|---|
7 | 47 | |
5,192 | 10,598 | |
0.7% | 0.1% | |
9.1 | 6.8 | |
10 days ago | about 1 month ago | |
PHP | PHP | |
MIT License | BSD 3-clause "New" or "Revised" 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.
larastan
-
7 Laravel Packages to Improve Coding Standards and Reduce Bugs
Larastan is a Coding Standards Fixer tool, It's a PHPStan wrapper for Laravel. Larastan focuses on finding errors in your code. It catches whole classes of bugs even before you write tests for the code.
-
Underestimated PHP
Static analysis or Laravel-lovers
-
Modern PHP practices... where to start, what to look out for?
Static Analysis Tools - there are a number of tools that help you to manage code style (PHPCS, PHP-CSFixer, and a new one, Laravel Pint), as well as tools to analyse the "correctness" of your code (Psalm, PHPstan, in particular LaraStan).
-
10 Laravel packages that might save your day
7. nunomaduro/larastan
-
Matt Brown, the creator of psalm, stops working at Vimeo (and stops working with PHP)
https://github.com/nunomaduro/larastan should help with this specifically
-
Larastan 0.7.3 is released with a rule that can check Laravel Octane compatibility
New 0.7.3 release includes a rule that can check Laravel Octane compatibility of your application. It basically automates the things mentioned in the official docs. You can give it a try now! And let me know what do you think!
-
I am attracted to Symfony a lot while I already develop very well with Laravel. Should I also learn Symfony?
again, not trying to get into a symfony vs laravel debate, but you can do static analysis https://github.com/nunomaduro/larastan
PHP Code Sniffer
- The Future of PHP_CodeSniffer
-
Laravel code-quality tools
PHP Insights supports sniffs from PHP CodeSniffer and fixers from PHP CS Fixer. This allows you to add any sniff or fixer as long as it implements PHP_CodeSniffer\Sniffs\Sniff or PhpCsFixer\Fixer\FixerInterface.
-
PHP_CodeSniffer update (package name will NOT be changing... just the repo & ownership)
I don’t know why but that link keeps reloading the page over and over. This one works for me: https://github.com/squizlabs/PHP_CodeSniffer/issues/3932
- The Future of PHP CodeSniffer
-
Top 6 PHP code quality tools 2023
PHP_CodeSniffer is a widely-used tool for enforcing coding standards in PHP. It checks the code against a set of predefined coding standards (such as PSR-12, PSR-2, and many others) and provides reports with violations and recommendations for improvement. Documentation: You can find more information about PHP_CodeSniffer and its usage in the official documentation: PHP_CodeSniffer Repository
-
PHP in 2023 - stitcher.io
While you're at it, also include code-style checkers like phpcs, phpmd and/or php-cs-fixer
-
how can I know if I am following PSR standards
See https://github.com/squizlabs/PHP_CodeSniffer
-
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.
-
Your experience switching from vanilla PHP spaghetti/OOP to Symfony?
PHP code sniffer
What are some alternatives?
PHPStan - PHP Static Analysis Tool - discover bugs in your code without running it!
PHP CS Fixer - A tool to automatically fix PHP Coding Standards issues
pint - Laravel Pint is an opinionated PHP code style fixer for minimalists.
laravel-ide-helper - IDE Helper for Laravel
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.
psalm-plugin-laravel - A Psalm plugin for Laravel
phan - Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness.
phpinsights - 🔰 Instant PHP quality checks from your console
Rector - Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
enlightn - Your performance & security consultant, an artisan command away.
GrumPHP - A PHP code-quality tool