pascalmh/git.php

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (1.0.0) of this package.

Maintainers

Details

github.com/Pascalmh/git.php

Source

Installs: 9 152

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 238

1.0.0 2017-02-09 16:55 UTC

This package is not auto-updated.

Last update: 2023-05-08 09:05:41 UTC


README

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