Skip to content

Laravel with Git pre-commit hook to check coding standard & code syntax

Notifications You must be signed in to change notification settings

hungthai1401/laravel-pre-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel GIT pre-commit hook

GitHub release (latest by date) Build Status GitHub issues Packagist Stars GitHub All Releases

Installation

To install through Composer, by run the following command:

composer require hungthai1401/laravel-pre-commit --dev

The package will automatically register a service provider and alias.

Optionally, publish the package's configuration file by running:

php artisan vendor:publish --provider="HT\PreCommit\Providers\PreCommitServiceProvider" --tag=config

Usage

  • Install git pre-commit hook:
php artisan git:pre-commit-hook:install
  • Publish default PSR config (It will be create phpcs.xml in your root project.).
php artisan git:publish-phpcs
  • Run test manually (made sure that you've added all changed files to git stage)
php artisan git:pre-commit

About

Laravel with Git pre-commit hook to check coding standard & code syntax

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages