zabaala/laravel_precommit is a Laravel package for a git pre-commit hook to laravel apps..
It currently has 46 GitHub stars and 415 downloads on Packagist (latest version v0.1.1).
Install it with composer require zabaala/laravel_precommit.
Discover more Laravel packages by zabaala
or browse all Laravel packages to compare alternatives.
Last updated
A Laravel package to analyze your PHP code and check your PHPUnit tests before commit your code.
composer require zabaala/laravel-pre-commit
If you're using Laravel 5.5 version, this package will be auto-discovered. But if you're using any other Laravel 5
version, you will need add the PreCommitServiceProvider inside of your config/app.php file:
// ...
\Zabaala\PreCommit\PreCommitServiceProvider::class,
Create a pre-commit file in: .git/hooks/pre-commit with the content below:
#!/bin/bash
./artisan git:pre-commit
Modify and commit any file.
MIT