elektro-potkan/project-version

Project Version Info

v1.1.1 2021-09-21 10:36 UTC

This package is auto-updated.

Last update: 2024-04-21 16:28:48 UTC


README

Retrieves version of project itself - using git or other methods.

Usage

This package mainly serves as common interface to get version of the project itself. The usual way is to instantiate the GIT variant during development and later use the static stub on a production server.

// development
$projectVersion = new ElektroPotkan\ProjectVersion\ProjectVersionGit;

// production
$projectVersion = new ElektroPotkan\ProjectVersion\ProjectVersionStatic('v4.7.28');

// retrieving the version string
$projectVersion->getVersion();

You could also implement the interface IProjectVersion to provide Your own version source.

Author

Elektro-potkan git@elektro-potkan.cz

Info

Versioning

This project uses Semantic Versioning 2.0.0 (semver.org).

Branching

This project uses slightly modified Git-Flow Workflow and Branching Model:

License

You may use this program under the terms of either the BSD Zero Clause License or the GNU General Public License (GPL) version 3 or later.

See file LICENSE.