coyl/git

There is no license information available for the latest version (0.1.7) of this package.

PHP library for manipulations on git repository. Based on kbjr/Git.php and it's forks

Maintainers

Details

github.com/coyl/git

Homepage

Source

Installs: 143 755

Dependents: 4

Suggesters: 0

Security: 0

Stars: 10

Watchers: 4

Forks: 239

0.1.7 2017-09-12 08:37 UTC

This package is auto-updated.

Last update: 2024-11-10 03:05:24 UTC


README

A PHP git library based on kbjr/Git.php

Description

A PHP git repository control library. Allows the running of any git command from a PHP class. Runs git commands using proc_open, not exec or the type, therefore it can run in PHP safe mode.

Requirements

A system with git installed

Basic Use

require_once('Git.php');

$repo = Git::open('/path/to/repo');  // -or- Git::create('/path/to/repo')

$repo->add('.');
$repo->commit('Some commit message');
$repo->push('origin', 'master');