PHP code example of maxorlovsky / commit-msg-php

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

    

maxorlovsky / commit-msg-php example snippets


"config": {
    "commit-msg": {
        "types": [
            "feat",
            "fix",
            "chore",
            "docs",
            "refactor",
            "style",
            "perf",
            "test",
            "revert"
        ],
        "lineLength": 72,
        "scope": {
            "mandatory": true,
            "rules": "Task-(\\d+)"
        }
    }
}