marcandreappel / git-tag
Library that helps with retrieving the tag of git-hosted PHP projects
Fund package maintenance!
marcandreappel
Requires
- php: ^8.0|^8.1
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-12-11 17:33:14 UTC
README
git-tag is a library that helps with retrieving the tag of git-hosted PHP projects.
Installation
You can add this library as a local, per-project dependency to your project using Composer:
composer require marcandreappel/git-tag
If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:
composer require --dev marcandreappel/git-tag
Usage
Here is a contrived example that shows the basic usage ; if the:
<?php declare(strict_types=1); use MarcAndreAppel\GitTag\GitTag; $tag = GitTag::tag(fallback: '1.0.0'); var_dump($tag);
string(5) "1.1.0"