PHP code example of scottrobertson / git
1. Go to this page and download the library: Download scottrobertson/git library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
scottrobertson / git example snippets
o = new \ScottRobertson\Git\Repository(
new \ScottRobertson\Git\Command(
'/tmp/data/php-git'
),
'https://github.com/scottrobertson/php-git.git'
);
print_r($repo->getCommits());