kba-team / cake2_app_version
CakePHP 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.
Package info
github.com/the-kbA-team/cake2_app_version
Type:cakephp-plugin
pkg:composer/kba-team/cake2_app_version
v2.0.1
2024-04-03 11:23 UTC
Requires
- php: >8.0, <8.4
- cakephp/cakephp: dev-master as 2.10.24
- composer/installers: ^2.2
- kba-team/version: ^2.0
This package is auto-updated.
Last update: 2026-03-01 00:13:34 UTC
README
CakePHP 2.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 echo appVersion();
Installation
- Require the plugin.
composer require kba-team/cake2_app_version
- Include the plugin in your
bootstrap.php
<?php CakePlugin::load('AppVersion', ['bootstrap' => true, 'routes' => false]);