accompli/chrono

此包已被废弃且不再维护。未建议替代包。

PHP 版本控制系统包装器。

0.3.1 2016-06-07 06:28 UTC

This package is auto-updated.

Last update: 2024-05-12 03:40:50 UTC


README

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

PHP 版本控制系统包装器。

使用 Composer 进行安装

运行以下命令将包添加到您的 composer.json 文件中:

$ composer require accompli/chrono

用法

Repository 类将根据仓库的 URL 检测使用哪个已注册的 VCS 适配器。

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

版本控制

Chrono 使用 语义版本化 2 进行新版本。

致谢和认可

许可证

Chrono 使用 MIT 许可证。请参阅 LICENSE 文件 了解详情。