kba-team/cake3_app_version

CakePHP 3.x plugin to determine the current version of your application. The version is either taken from the commit.json of the deploy script or from the local clone of the git repository.

Maintainers

Package info

github.com/the-kbA-team/cake3_app_version

Type:cakephp-plugin

pkg:composer/kba-team/cake3_app_version

Statistics

Installs: 42

Dependents: 0

Suggesters: 0

Stars: 0

v1.0.2 2020-03-26 15:21 UTC

This package is auto-updated.

Last update: 2026-02-27 04:43:22 UTC


README

CakePHP 3.x plugin to determine the current version of your application. The version is either taken from the commit.json of the deploy script or from the local clone of the git repository.

Usage

<?php
echo constant('APP_VERSION');
//or
use \kbATeam\AppVersion\Version;
echo Version::string();

Installation

  1. Require the plugin.
composer require kba-team/cake3_app_version
  1. Include the plugin in your bootstrap.php
<?php
Plugin::load('kbATeam/AppVersion', ['bootstrap' => true, 'routes' => false]);