ichhabrecht / git-wrapper
A PHP (read-only) wrapper for the Git command line utility
Installs: 232
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 1
Open Issues: 1
pkg:composer/ichhabrecht/git-wrapper
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: 2025-09-11 16:36:00 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();