ichhabrecht / git-wrapper
A PHP (read-only) wrapper for the Git command line utility
1.3.0
2017-03-12 15:33 UTC
Requires
- symfony/process: ^3.0
Requires (Dev)
- phpunit/phpunit: ~4.8.0
- symfony/filesystem: ^3.0
Suggests
- friendsofphp/php-cs-fixer: Tool to automatically fix PHP coding standards issues
This package is auto-updated.
Last update: 2024-11-11 14:26:35 UTC
README
A PHP (read-only) wrapper for the Git command line utility.
Installation
It's recommended that you use Composer to install the git-wrapper.
$ composer require ichhabrecht/git-wrapper
Usage
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();