markmarco16 / yii2-git
此包已被废弃,不再维护。未建议替代包。
可视化仓库GIT
dev-master
2017-04-15 18:02 UTC
Requires
- yiisoft/yii2: 2.0.*
This package is not auto-updated.
Last update: 2024-08-03 16:08:57 UTC
README
模块,允许使用 Yii 框架来可视化 Git 仓库。
开发中...
安装
需求
Git Yii2 php 函数 exec
Composer
安装此扩展的最佳方式是通过 Composer。
执行
php composer.phar require markmarco16/yii2-git "dev-master"
或
"markmarco16/yii2-git": "dev-master"
在你的 composer.json
需求部分添加
使用
在 Yii 应用程序的配置中配置此模块
<?php ...... 'modules' => [ 'git' => [ 'class' => 'markmarco16\git\Module', 'gitDir' => '/var/git/', //Ruta Adsoluta 'datetimeFormat' => '%Y-%m-%d %H:%M:%S', //Opcional 'subjectMaxLength' => 80, //Opcional ], ], ......