library git
Simple Git wrapper in PHP
scottrobertson/git
Simple Git wrapper in PHP
- Sunday, December 29, 2013
- by scottrobertson
- Repository
- 2 Watchers
- 3 Stars
- 4 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
Git PHP Wrapper
, (*1)
This is a very simple PHP wrapper for Git. It contains a limited set of functionality right now, and things will be added as I (and others) need them., (*2)
Example
<?php
require_once __DIR__ . '/vendor/autoload.php';
$repo = new \ScottRobertson\Git\Repository(
new \ScottRobertson\Git\Command(
'/tmp/data/php-git'
),
'https://github.com/scottrobertson/php-git.git'
);
print_r($repo->getCommits());