PHP code example of jeleb-smile / php-git-hooks

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

    

jeleb-smile / php-git-hooks example snippets

json
{
    "ruli/php-git-hooks": "~3.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