Category: PHP, git, javascript

Githooks are scripts that Git executes before or after events such as commit, push, and receive. Git hooks are a built-in feature — no need to download anything.

We mentioned that we configure grumphp to PSR12 standards and that was under the line of phpcs, let’s understand what phpcs and what are other PHP scripts that we can use to detect violations in the code.

You can install PHP_CodeSniffer in your project using composer via the command: You will have two scripts added to your project

To add it to your project you can use composer via command: You also need to configure it under the grumphp.yml configuration file: Remember to change the directory to the directory that you wish to sniff.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners