一个 PHP Git 库
一个 PHP Git 仓库控制库。允许从 PHP 类中运行任何 Git 命令。使用 proc_open 运行 Git 命令,而不是 exec 或其他类型,因此可以在 PHP 安全模式下运行。
安装了 git 的系统
require __DIR__ . '/../vendor/autoload.php';
use Kbjr\Git\Git;
$repo = Git::open('/path/to/repo'); // -or- Git::create('/path/to/repo')
$repo->add('.');
$repo->commit('Some commit message');
$repo->push('origin', 'master');喜欢我的作品吗?
暂无开放 Issues,或尚未同步最近议题。