Skip to content

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

Notifications You must be signed in to change notification settings

IchHabRecht/git-wrapper

Repository files navigation

git-wrapper

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages