Skip to content

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.

License

Notifications You must be signed in to change notification settings

the-kbA-team/cake3_app_version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CakePHP 3.x AppVersion

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]);

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages