PHP code example of dreamzml / yii2-simplegitpublish
1. Go to this page and download the library: Download dreamzml/yii2-simplegitpublish 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/ */
dreamzml / yii2-simplegitpublish example snippets
return [
'modules' => [
'gitpublish' => [
'class' => 'dreamzml\SimpleGitPublish\Module',
'allowedIPs' => ['127.0.0.1', '::1'], // if set ['*'] allow all ip
'monitors' => [
'MASTER'=>'123456', // MASTER allow push to master branch
'TESTER'=>'111',
], //allow users, if set * allow all user
],
],
// ...
];