PHP code example of dyweb / php-git-hooks

1. Go to this page and download the library: Download dyweb/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/ */

    

dyweb / php-git-hooks example snippets

json
{
    "yweb/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