A PHP git library
Switch branches/tags
Nothing to show
Clone or download
kbjr Merge pull request #55 from werring/patch-1
Prevent undefined variable diff notice when method log is used withou…
Latest commit 809b3d1 May 1, 2017



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


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.


A system with git installed

Basic Use


$repo = Git::open('/path/to/repo');  // -or- Git::create('/path/to/repo')

$repo->commit('Some commit message');
$repo->push('origin', 'master');