accompli / chrono
此包已被废弃且不再维护。未建议替代包。
PHP 版本控制系统包装器。
0.3.1
2016-06-07 06:28 UTC
Requires
- php: ^5.5 || ^7.0
- symfony/process: ^2.7 || ^3.0
Requires (Dev)
- phpunit/phpunit: ^4.4
- satooshi/php-coveralls: ^1.0
README
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 进行新版本。
致谢和认可
- Niels Nijens
- 所有贡献者
- 灵感来源于 Composer 的 VCS 驱动。
许可证
Chrono 使用 MIT 许可证。请参阅 LICENSE 文件 了解详情。