coyl/

git

该包最新版本(0.1.7)的许可证信息不可用。

PHP库,用于git仓库操作。基于 kbjr/Git.php 及其分支

维护者

详细信息

github.com/coyl/git

主页

源码

安装次数: 136,898

依赖者: 4

建议者: 0

安全: 0

星标: 10

关注者: 4

分支: 239

0.1.7 2017-09-12 08:37 UTC

This package is auto-updated.

Last update: 2024-09-10 02:39:24 UTC


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');