PHP code example of wcm / git-php-hooks

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

    

wcm / git-php-hooks example snippets


#!/usr/bin/env php


LE__, 'project-hooks' );

#!/usr/bin/env php

$output = shell_exec( 'php -l' );
echo $output;
if ( $output === 1 )
	exit 1;


new \GitHooksLoader( __FILE__, 'vendor/wcm/git-php-hooks-library/src' );
javascript
php : {
	options      : {
		hashbang    : '#!/usr/bin/env php',
		startMarker : '\n',
		template    : './templates/git-php-hooks.tmpl.hb'
	},
	'pre-push'   : 'none'
}
json
"wcm/git-php-hooks": "^1.0"