PHP code example of ccinn / husky-php

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

    

ccinn / husky-php example snippets


docker build --build-arg PHP_VERION=8.0.9 -t husky-php .
json5
// .huskyrc or .huskyrc.json
{
  "hooks": {
    "pre-commit": "echo 'husky-php-pre-commit'",
    "pre-push": "echo 'husky-php-pre-push'",
    "...": "..."
  }
}

husky-php-pre-commit