Skip to content

lshepstone/php-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-git

Simple PHP wrapper for the Git command

Build Status

Open

To open an existing repository

use \PhpGit\Git;
use \PhpProc\Process;

$git = new Git('/usr/bin/git', new Process());
$repository = $git->open('./php-git');

Clone

To clone a remote repository

use \PhpGit\Git;
use \PhpProc\Process;

$git = new Git('/usr/bin/git', new Process());
$repository = $git->clone('https://github.com/lshepstone/php-git.git', './php-git');

Pull

To pull from the default remote repository

use \PhpGit\Git;
use \PhpProc\Process;

$git = new Git('/usr/bin/git', new Process());
$git->pull('./php-git');

// or, using an already opened Repository instance
$repository = $git->open('./php-git');
$repository->pull();

About

Simple PHP wrapper for the Git command

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages