Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.
/ chrono Public archive

Version Control System wrapper for PHP.

License

Notifications You must be signed in to change notification settings

accompli/chrono

Folders and files

NameName
Last commit message
Last commit date
Jun 7, 2016
Jun 6, 2016
Nov 13, 2015
Nov 13, 2015
May 14, 2016
Jun 7, 2016
Nov 13, 2015
Jan 8, 2016
Mar 25, 2016
May 14, 2016
May 15, 2016
Nov 14, 2015

Repository files navigation

Chrono

Latest Version on Packagist Software License Build Status Coverage Status SensioLabsInsight StyleCI

Version Control System wrapper for PHP.

Installation using Composer

Run the following command to add the package to your composer.json:

$ composer require accompli/chrono

Usage

The Repository class will detect which registered VCS adapter to use based on the URL of the repository.

<?php

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.

Versioning

Chrono uses Semantic Versioning 2 for new versions.

Credits and acknowledgements

License

Chrono is licensed under the MIT License. Please see the LICENSE file for details.