{"id":16401592,"url":"https://github.com/yev/yiigitbuildnumber","last_synced_at":"2026-06-19T17:31:34.470Z","repository":{"id":6578397,"uuid":"7820577","full_name":"yev/yiiGitBuildNumber","owner":"yev","description":"The component for Yii framework to retrieve the build information (last commit id and commit time)","archived":false,"fork":false,"pushed_at":"2013-03-12T16:24:27.000Z","size":256,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-05T02:42:12.727Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-25T13:24:34.000Z","updated_at":"2024-11-14T16:22:12.000Z","dependencies_parsed_at":"2022-09-14T04:50:14.719Z","dependency_job_id":null,"html_url":"https://github.com/yev/yiiGitBuildNumber","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yev%2FyiiGitBuildNumber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yev%2FyiiGitBuildNumber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yev%2FyiiGitBuildNumber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yev%2FyiiGitBuildNumber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yev","download_url":"https://codeload.github.com/yev/yiiGitBuildNumber/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240325895,"owners_count":19783750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T05:43:32.979Z","updated_at":"2026-06-19T17:31:29.439Z","avatar_url":"https://github.com/yev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"yiiGitBuildNumber\n=================\n\nThe component for Yii framework to retrieve the build information (last commit id and commit time).\n\nThis is a very simple component that uses internally the git cmd functions.\n\nThe idea of writing this component comes from my Java experience with very popular plugin [maven-build-number](http://mojo.codehaus.org/buildnumber-maven-plugin/ \"Maven-Build-Number-Plugin\").\n\nSo after making some [improvements](http://yevgen-fr.blogspot.com/2012/02/my-first-open-source-commitment-git.html) \nfor existing maven plugin I decided to make something similar for the PHP/Yii world. \nI think that the little usefull and effortless tricks like this one, can make you application more proffessional.\n\n\nThe screenshot below demonstrates what does this component:\n![git build number git](https://raw.github.com/yev/yiiGitBuildNumber/master/img/yii%20Build%20number%20Exemple.jpg)\n\nInstallation instructions\n-------------------\n\nCopy the  *GitBuildNumberComponent.php* file to your webapp   */protected/components/* folder.\n  `wget https://github.com/yev/yiiGitBuildNumber/blob/master/src/GitBuildNumberComponent.php`\n  \nConfiguration instruction\n-------------------\n\nAfter downloading and installing the component into right place you have to tell yii framework about tne new component:\n\n1. Edit your webapp/protected/config/main.php file\n2. And add the following somewhere in the *components* section - `'git'=\u003earray(\n            'class'=\u003e'GitBuildNumberComponent',\n        )`\n3. After this modification your `protected/config/main.php` file may looks like this:\n![](https://raw.github.com/yev/yiiGitBuildNumber/master/img/BuildNumberYiiConfiguration.jpg)\n\n\nUsing\n-------------------\n\n![how to call the component](https://raw.github.com/yev/yiiGitBuildNumber/master/img/BuildNumberCallExemple.jpg)\n\nRequirements\n-------------------\n\nThe component has been tested on Yii 1.1.12 and PHP 5.4.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyev%2Fyiigitbuildnumber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyev%2Fyiigitbuildnumber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyev%2Fyiigitbuildnumber/lists"}