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.

Installs: 4 250

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:cakephp-plugin

v2.0.1 2024-04-03 11:23 UTC

This package is auto-updated.

Last update: 2024-12-03 15:12:59 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

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