PHP code example of joshhornby / php-git-hooks

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

    

joshhornby / php-git-hooks example snippets

json
{
    "ruli/php-git-hooks": "^2.0"
    }
}
bash
$ composer 
bash
 $cp vendor/bruli/php-git-hooks/hooks/pre-commit .git/hooks
bash
 $cp vendor/bruli/php-git-hooks/hooks/commit-msg .git/hooks