ichhabrecht/git-wrapper

A PHP (read-only) wrapper for the Git command line utility

1.3.0 2017-03-12 15:33 UTC

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.

Latest Stable Version Build Status

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