A highly opinionated Git pre-commit hooks for coding standards checking, and syntax fixing for the Laravel framework.
To be able to use this package you need to meet the following minimum requirements:
- Laravel framework >= v9
- PHP >= v8.0
You can install the package via composer:
composer require laranail/git-commit-checker
To publish views and config files for further manipulation, run the following commands:
php artisan vendor:publish laranail::git-commit-checker-config
php artisan vendor:publish laranail::git-commit-checker-views
Run this command to install:
php artisan git-commit-checker:install
Run test manually (made sure you've added all changed files to git stage):
php artisan git-commit-checker:pre-commit-hook
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email minhsang2603@gmail.com instead of using the issue tracker.
This project wouldn't have been possible without the inspiration and ideas borrowed from many sources across the open source community, we say thank you to the respective authors.
The MIT License (MIT). Please see License File for more information.