dangthinh104/commit-checker

Check coding standard & code syntax with Git pre-commit hook.

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:package

pkg:composer/dangthinh104/commit-checker

2.0.0 2022-05-04 06:52 UTC

This package is auto-updated.

Last update: 2025-12-04 14:57:34 UTC


README

Latest Version Software License Build Status

Installation

composer require dangthinh104/commit-checker

Publish the configuration:

Install GIT hooks

php artisan git:install-hooks
  • Create default PSR config (It will create phpcs.xml in your root project).
php artisan git:create-phpcs
  • Create default PHPMD config (It will create phpmd.xml in your root project).
php artisan git:create-phpmd
  • Run test manually (made sure you've added all changed files to git stage)
php artisan git:pre-commit
  • Run test manually PHPMD(default just check PSR2)
php artisan git:pre-commit --phpmd