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.
<?php
echo constant('APP_VERSION');
//or
use \kbATeam\AppVersion\Version;
echo Version::string();
- Require the plugin.
composer require kba-team/cake3_app_version
- Include the plugin in your
bootstrap.php
<?php
Plugin::load('kbATeam/AppVersion', ['bootstrap' => true, 'routes' => false]);