Skip to content

Library that helps with getting the tag from git-hosted PHP projects

License

Notifications You must be signed in to change notification settings

marcandreappel/git-tag

 
 

Repository files navigation

git-tag

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"

About

Library that helps with getting the tag from git-hosted PHP projects

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%