Version Control System wrapper for PHP.

Version Control System wrapper for PHP.

README

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 AccompliChronoProcessProcessExecutor;
use AccompliChronoRepository;

$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.

Source

Add a Comment

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *