Skip to content

The component for Yii framework to retrieve the build information (last commit id and commit time)

Notifications You must be signed in to change notification settings

yev/yiiGitBuildNumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

yiiGitBuildNumber

The component for Yii framework to retrieve the build information (last commit id and commit time).

This is a very simple component that uses internally the git cmd functions.

The idea of writing this component comes from my Java experience with very popular plugin maven-build-number.

So after making some improvements for existing maven plugin I decided to make something similar for the PHP/Yii world. I think that the little usefull and effortless tricks like this one, can make you application more proffessional.

The screenshot below demonstrates what does this component: git build number git

Installation instructions

Copy the GitBuildNumberComponent.php file to your webapp /protected/components/ folder. wget https://github.com/yev/yiiGitBuildNumber/blob/master/src/GitBuildNumberComponent.php

Configuration instruction

After downloading and installing the component into right place you have to tell yii framework about tne new component:

  1. Edit your webapp/protected/config/main.php file
  2. And add the following somewhere in the components section - 'git'=>array( 'class'=>'GitBuildNumberComponent', )
  3. After this modification your protected/config/main.php file may looks like this:

Using

how to call the component

Requirements

The component has been tested on Yii 1.1.12 and PHP 5.4.

About

The component for Yii framework to retrieve the build information (last commit id and commit time)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages