yii2mod/yii2-hg Mercurial helper

extensionmercurialhg

Mercurial helper (update / show version)

Latest Stable Version Total Downloads License

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist yii2mod/yii2-hg "*"

or add

"yii2mod/yii2-hg": "*"

to the require section of your composer.json.

Configuration

  1. Requires configured ErrorHandler from yii2mod/yii2-cron-log package
  2. Add the SelfUpdateCommand to the console.php configuration file
    'controllerMap' => [
    'selfupdate' => 'yii2mod\hg\commands\SelfUpdateCommand',
    ],

Usage

Just add the following code to your main layout

<?php if (YII_DEBUG): ?>
        <?php $this->title .= ' revision:' . \yii2mod\hg\helpers\HgHelper::getRevision(); ?>
<?php endif; ?>

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.0 is the latest of one release



MIT license
Stats
4 github stars & 0 github forks
0 downloads in the last day
0 downloads in the last 30 days
102 total downloads