coyl / git
该包最新版本(0.1.7)的许可证信息不可用。
PHP库,用于git仓库操作。基于 kbjr/Git.php 及其分支
0.1.7
2017-09-12 08:37 UTC
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: ~3.7.0
README
基于 kbjr/Git.php 的 PHP git 库
描述
PHP git仓库控制库。允许从PHP类中运行任何git命令。使用proc_open
运行git命令,而不是exec
或类似方式,因此可以在PHP安全模式下运行。
需求
已安装git的系统
基本用法
require_once('Git.php'); $repo = Git::open('/path/to/repo'); // -or- Git::create('/path/to/repo') $repo->add('.'); $repo->commit('Some commit message'); $repo->push('origin', 'master');