1. Go to this page and download the library: Download pascalc/vcs 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/ */
pascalc / vcs example snippets
// Import classes in the current namespace
use VCS\Mercurial;
use VCS\Git;
use VCS\Subversion;
// Composer autoloading
git/repo');
$svn = new Subversion('/path/to/svn/repo');
// Update local repos from remote server
$hg->update();
$git->update();
$svn->update();
// Dump all the commits extracted
var_dump($hg->getCommits());
var_dump($git->getCommits());
var_dump($svn->getCommits());