A PHP (read-only) wrapper for the Git command line utility.
It's recommended that you use Composer to install the git-wrapper.
$ composer require ichhabrecht/git-wrapper
Clone a repository
$gitWrapper = new IchHabRecht\GitWrapper\GitWrapper();
$gitRepository = $gitWrapper->cloneRepository('https://github.com/IchHabRecht/git-wrapper.git', __DIR__ . '/git-wrapper');
Get working copy
$gitWrapper = new IchHabRecht\GitWrapper\GitWrapper();
$gitRepository = $gitWrapper->getRepository(__DIR__ . '/git-wrapper');
$gitRepository->fetch();
$gitRepository->pull();