Download the PHP package sydnerdrage/php-gitver without Composer
On this page you can find all versions of the php package sydnerdrage/php-gitver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package php-gitver
gitver
Simple class to parse version tags from a git working directory.
Usage
Gitver defaults to the current working directory. As such it requires no immediate configuration
use \Gitver\Git;
$gitver = new Git(__DIR__);
echo $gitver->version();
This will output a git describe
of the current working directory.
e.g. v0.1.1-0-abcdefg
This is a combination of:
- Most recent tag (matching a $prefixX.Y.Z format - see configuration below)
- Number of commits since that tag
- Current commit prefixed with 'g' (identifying the repository as git).
Configuration
- Working directory to retrieve version from (defaults to the current working directory)
- Tag match prefix (defaults to "v")
For example if you version tags are in the format of release-X.Y.Z then you would call
$gitver = new Git(__DIR__, "version-");
CakePHP Sample
All versions of php-gitver with dependencies
PHP Build Version
Package Version
No informations.
The package sydnerdrage/php-gitver contains the following files
Loading the files please wait ....