HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

grumphp — A PHP Composer plugin that enables source code quality checks. More information: <https://github.com

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandpluginenablescomposercligrumphpphpthat

Problem

How to use the grumphp command: A PHP Composer plugin that enables source code quality checks. More information: <https://github.com/phpro/grumphp#commands>.

Solution

grumphp — A PHP Composer plugin that enables source code quality checks. More information: <https://github.com/phpro/grumphp#commands>.

Register the Git hooks:
grumphp git:init


Trigger the pre-commit hook manually:
grumphp git:pre-commit


Check every versioned file:
grumphp run

Code Snippets

Register the Git hooks

grumphp git:init

Trigger the pre-commit hook manually

grumphp git:pre-commit

Check every versioned file

grumphp run

Context

tldr-pages: common/grumphp

Revisions (0)

No revisions yet.