kendrick/symfony-debug-toolbar-git 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kendrick/symfony-debug-toolbar-git

最新稳定版本:1.4.5

Composer 安装命令:

composer require kendrick/symfony-debug-toolbar-git

包简介

Git information into Symfony Debug Toolbar

README 文档

README

SensioLabsInsight

Latest Stable Version Total Downloads Latest Unstable Version License

Monthly Downloads Daily Downloads

Travis CI Scrutinizer CI Scrutinizer CI Dependency Status

Symfony toolbar add-on

Get the latest git commit into Symfony debug toolbar

And visualize quickly the latest commit into your repository by clicking on the Commit ID.

SymfonyDebugToolbarGit

SymfonyDebugToolbarGit2.8

Information displayed :

  • Branch : active branch
  • Time since last commit : time since last commit at page generation
  1. less than one hour : minutes + seconds | colored in green, then in red :
  2. more than one hour : hour(s)
  3. more than 24h : count in days
  4. more than 1 month : count in months

Useful for local development but also for a continuous integration (CI) process on a development server.

If no git repository have been initiated, there will be no display into the toolbar.

Status information : mouse over

Information displayed :

  • Commit ID : links to the commit URL on your repository (Github, Bitbucket..), base url is to set into repository_commit_url parameter
  • Merge : merge IDs if there is
  • Author
  • Email : email with active link
  • Date : full date of latest commit
  • Commit message

Installation

Composer

composer require kendrick/symfony-debug-toolbar-git

Register into AppKernel

app/AppKernel.php :

if (in_array($this->getEnvironment(), array('dev', 'test'))) {
    [...]
    $bundles[] = new Kendrick\SymfonyDebugToolbarGit\SymfonyDebugToolbarGit();

Parameters

app/config/config_dev.yml :

symfony_debug_toolbar_git:
    repository_commit_url: ""

repository_commit_url, ex : https://bitbucket.org/team/project/commits/ or https://github.com/user/project/commit/

More tools

Google Analytics API v4 Symfony bundle : https://github.com/mediafigaro/google-analytics-api-symfony

统计信息

  • 总下载量: 59.43k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 33
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 30
  • Watchers: 7
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-08