nofutur3/tracy-gitpanel 问题修复 & 功能扩展

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

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

nofutur3/tracy-gitpanel

最新稳定版本:v0.9.7

Composer 安装命令:

composer require nofutur3/tracy-gitpanel

包简介

nette extension - adds the GIT panel to the tracy panel - shows current GIT branch.

README 文档

README

Build Status Downloads this Month Latest stable

This is simple extension for Tracy which shows the information about current GIT branch.

not versioned project

versioned project

Installation

The recommended installation is using composer.

composer req nofutur3/tracy-gitpanel

Alternative way - in case you are not able to use composer. Download the source code (ie clone git repo) into your project and require it some way. For nette framework like this in your bootstrap file:

$configurator
    ->createRobotLoader()
    ->addDirectory(__DIR__ . 'path/to/library/');

Configuration

In your nette application it's simple, just add these lines to your config file. Depends on the structure of your config files, but you may use the basic config.neon file. I usually add the lines just in config.local.neon file because I don't need this extension in production mode.

Nette 2.3+
tracy:
    bar:
        - Nofutur3\GitPanel\Diagnostics\Panel

If you want to set up the protected branches (by default it uses just a master branch), just pass the array of branch names to the panel:

parameters: 
    protected-branches:
        - production
        - staging
tracy:
    bar:
        - Nofutur3\GitPanel\Diagnostics\Panel(%protected-branches%)
Older version of Nette:
nette:
    debugger:
        bar: 
            - Nofutur3\GitPanel\Diagnostics\Panel

Standalone Tracy

In case you are using Tracy without Nette, you can add GitPanel this way:

\Tracy\Debugger::getBar()->addPanel(new \Nofutur3\GitPanel\Diagnostics\Panel());

Or with protected branches:

\Tracy\Debugger::getBar()
    ->addPanel(new \Nofutur3\GitPanel\Diagnostics\Panel(['production','staging']));

Support

💲 Do you like this tool? Support me with few bucks to cover coffee expenses ;)

Hey! You can send me money on Revolut by following this link: https://revolut.me/jakub9sv bitcoin
bc1q5ednnq59x70sv0zlk9w5p4fm92srlwljhr7yk6
lightning network
lnurl1dp68gurn8ghj7ampd3kx2ar0veekzar0wd5xjtnrdakj7tnhv4kxctttdehhwm30d3h82unvwqhhwunev4jxjar0wgunw3gu8z2
litecoin
ltc1q3e8g32u8ltgw5ycymw42feuvurgx89yayuxw9u

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固