PHP code example of bruli / php-git-hooks
1. Go to this page and download the library: Download bruli/php-git-hooks library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bruli / php-git-hooks example snippets
json
{
"ruli/php-git-hooks": "~4.1"
}
}
bash
$ composer
bash
$ cp vendor/bruli/php-git-hooks/src/PhpGitHooks/Infrastructure/Hook/pre-commit .git/hooks
bash
$ cp vendor/bruli/php-git-hooks/src/PhpGitHooks/Infrastructure/Hook/commit-msg .git/hooks