PHP code example of accompli / chrono
1. Go to this page and download the library: Download accompli/chrono 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/ */
accompli / chrono example snippets
use Accompli\Chrono\Process\ProcessExecutor;
use Accompli\Chrono\Repository;
$repository = new Repository('https://github.com/accompli/chrono.git', '/vcs/checkout/directory', new ProcessExecutor());
$repository->getBranches(); // Returns an array with all available branches in the repository.
$repository->getTags(); // Returns an array with all available tags in the repository.
$repository->checkout('0.1.0'); // Creates or updates a checkout of a tag or branch in the repository directory.