Skip to content
A PHP git library
PHP
Branch: master
Clone or download
Pull request Compare This branch is 19 commits behind kbjr:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
Git.php
composer.json
license.txt
readme.md

readme.md

Git.php

Click here to lend your support to: Git.php and make a donation at pledgie.com !

Description

A PHP git repository control library. Allows the running of any git command from a PHP class. Runs git commands using proc_open, not exec or the type, therefore it can run in PHP safe mode.

Requirements

A system with git installed

Basic Use

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');
You can’t perform that action at this time.