|GrumPHP||PHP Code Sniffer|
|30 days ago||9 days ago|
|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.
PHPUnit, do i need to learn it?
5 projects | reddit.com/r/PHP | 6 Jan 2023
sounds like you heard of Grumphp
Ideas for minimum PHP pipeline for a small team
7 projects | reddit.com/r/PHP | 30 Dec 2022
A quality inspection hook installer
2 projects | reddit.com/r/laravel | 8 Sep 2022
Are you aware of GrumPHP?
Is there a way to run commands before PHPStorm commits?
2 projects | reddit.com/r/phpstorm | 7 Jun 2022
I use grumphp to run phplint, phpstan, Easy coding standard (includes php-cs fixer) and phpunit. All four will automatically run before every commit, stopping any 'below standard' code from being committed. Example config file
What are some helpful tools every Laravel CI pipeline should have?
3 projects | reddit.com/r/laravel | 26 Mar 2022
like valplet said: https://github.com/phpro/grumphp But also: https://styleci.io/ integrates nicely with git For client side code formatting check: https://prettier.io/
Tools you’ve used to increase code quality and/or productivity?
3 projects | reddit.com/r/laravel | 2 Dec 2021
GrumPHP with these tasks: https://github.com/phpro/grumphp/blob/master/doc/tasks/composer.md https://github.com/phpro/grumphp/blob/master/doc/tasks/composer_normalize.md https://github.com/phpro/grumphp/blob/master/doc/tasks/composer_require_checker.md https://github.com/phpro/grumphp/blob/master/doc/tasks/git_commit_message.md https://github.com/phpro/grumphp/blob/master/doc/tasks/phpcs.md https://github.com/phpro/grumphp/blob/master/doc/tasks/psalm.md
PHP libraries and tools
36 projects | dev.to | 22 Sep 2021
GrumPHP: A PHP code-quality tool.
Automating code quality check using GrumPHP in Magento 2
9 projects | dev.to | 11 Apr 2021
grumphp can be configured to listen to git commit commands and will not allow until all quality checks passed.
A minimal Drupal 9 local development environment
7 projects | dev.to | 28 Feb 2021
How to get team members to write meaningful commits.
5 projects | reddit.com/r/PHP | 27 Feb 2021
For those interested: https://github.com/phpro/grumphp/blob/master/doc/tasks/git_commit_message.md#git-commit-message
PHP Code Sniffer
PHP in 2023 - stitcher.io
7 projects | reddit.com/r/PHP | 17 Jan 2023
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
2 projects | reddit.com/r/PHP | 6 Jan 2023
2 projects | reddit.com/r/PHPhelp | 8 Dec 2022
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?
3 projects | reddit.com/r/symfony | 2 Dec 2022
PHP code sniffer
Extensionless scripts in PHP_CodeSniffer
2 projects | reddit.com/r/PHPhelp | 21 Nov 2022
That Stack Overflow question has a link to a GitHub issue that basically says it isn't supported out of the box and you need to write your own file filter class.2 projects | reddit.com/r/PHPhelp | 21 Nov 2022
Tool to assist with PHP migration (Rector?)
3 projects | reddit.com/r/PHPhelp | 12 Oct 2022
I would use either PHPStan or PHP CodeSniffer + PHPCompatibility
Ignore specific error in PHP_CodeSniffer
2 projects | reddit.com/r/PHPhelp | 11 Oct 2022
But sometimes you just have to ignore errors, and you can do that in many different ways. Most (if not all) are explained in the advanced usages and the annotated ruleset parts of the docs.
How to move up to PHP 8 and Object Orientation?
6 projects | reddit.com/r/PHPhelp | 19 Sep 2022
https://github.com/squizlabs/PHP_CodeSniffer - Library to note errors in and correct your code based on specified standards. There are others, of course.
Best way to check custom coding conventions
5 projects | reddit.com/r/PHP | 5 Sep 2022
Any number of static analysis tools can enforce style. I happen to like PHP_CodeSniffer.
What are some alternatives?
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!
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.
phan - Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness.
Rector - Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
drupal-project - :rocket: Composer template for Drupal projects. Quick installation via "composer create-project drupal-composer/drupal-project"
Psalm - A static analysis tool for finding errors in PHP applications
PHP Parser - A PHP parser written in PHP
PHPUnit - The PHP Unit Testing framework.