lkt/app-version

LKT App Version

1.0.0 2023-08-01 15:19 UTC

This package is auto-updated.

Last update: 2025-03-24 15:13:43 UTC


README

Installation

composer require lkt/app-version

Setup app version

From composer.json file

\Lkt\AppVersion::readFromComposerFile(__DIR__ . '/path/to/composer.json');

Manual setup

\Lkt\AppVersion::setVersion(1, 0, 0); // Major, Minor, Patch
\Lkt\AppVersion::setVersion('1.0.0'); // All-in-one Major.Minor.Patch

Retrieve version

\Lkt\AppVersion::get(); // Returns version as a dot separated string
\Lkt\AppVersion::getAsNumber(); // Returns version as a number