grynn/git
最新稳定版本:v0.0.3
Composer 安装命令:
composer require grynn/git
包简介
A simple wrapper for git (depends on the git executable). Supports subset of commands useful for versioning projects
关键字:
README 文档
README
Simple PHP wrapper for Git (depends on git executable being in the path). Very limited feature set. Mainly for use with Grynn\GitVersionBump
Installation
To add this package as a local, per-project dependency to your project, simply add a dependency on grynn/git to your project's composer.json file. Here is a minimal example of a composer.json file that just defines a dependency on Grynn\Git 1.0:
{
"require": {
"grynn/git": "1.0.*"
}
}
Usage
$git = new \Grynn\Git();
$git->getCurrentBranch(); //Returns: branchname
$git->isDirty(); //Returns: true if working dir is dirty
$git->getVersionTag(); //Returns: version tag that describes current HEAD
统计信息
- 总下载量: 24
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2015-01-06