Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Laravel GIT commit checker

Latest Version Software License Build Status Quality Score StyleCI Total Downloads Maintainability

Installation

composer require botble/git-commit-checker

For version <= 5.4:

Add to section providers of config/app.php:

// config/app.php
'providers' => [
    ...
    Botble\GitCommitChecker\Providers\GitCommitCheckerServiceProvider::class,
];

Publish the configuration:

php artisan vendor:publish --provider="Botble\GitCommitChecker\Providers\GitCommitCheckerServiceProvider" --tag=config

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
  • Run test manually (made sure you've added all changed files to git stage)
php artisan git:pre-commit

About

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

Resources

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

You can’t perform that action at this time.