Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kendrick-k/symfony-debug-toolbar-git
Get the latest Git commit information into Symfony debug toolbar
https://github.com/kendrick-k/symfony-debug-toolbar-git
debug debugbar git symfony symfony-bundle toolbar
Last synced: 5 days ago
JSON representation
Get the latest Git commit information into Symfony debug toolbar
- Host: GitHub
- URL: https://github.com/kendrick-k/symfony-debug-toolbar-git
- Owner: kendrick-k
- License: mit
- Created: 2015-03-04T22:15:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-10T10:26:43.000Z (over 6 years ago)
- Last Synced: 2024-10-11T19:52:28.406Z (26 days ago)
- Topics: debug, debugbar, git, symfony, symfony-bundle, toolbar
- Language: PHP
- Size: 738 KB
- Stars: 29
- Watchers: 8
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Symfony Debug Toolbar Git
=========================[![SensioLabsInsight](https://insight.sensiolabs.com/projects/08698266-b800-4ca4-bb20-8ceb65b3f31b/big.png)](https://insight.sensiolabs.com/projects/08698266-b800-4ca4-bb20-8ceb65b3f31b)
[![Latest Stable Version](https://poser.pugx.org/kendrick/symfony-debug-toolbar-git/v/stable.svg)](https://packagist.org/packages/kendrick/symfony-debug-toolbar-git) [![Total Downloads](https://poser.pugx.org/kendrick/symfony-debug-toolbar-git/downloads.svg)](https://packagist.org/packages/kendrick/symfony-debug-toolbar-git) [![Latest Unstable Version](https://poser.pugx.org/kendrick/symfony-debug-toolbar-git/v/unstable.svg)](https://packagist.org/packages/kendrick/symfony-debug-toolbar-git) [![License](https://poser.pugx.org/kendrick/symfony-debug-toolbar-git/license.svg)](https://packagist.org/packages/kendrick/symfony-debug-toolbar-git)
[![Monthly Downloads](https://poser.pugx.org/kendrick/symfony-debug-toolbar-git/d/monthly.png)](https://packagist.org/packages/kendrick/symfony-debug-toolbar-git) [![Daily Downloads](https://poser.pugx.org/kendrick/symfony-debug-toolbar-git/d/daily.png)](https://packagist.org/packages/kendrick/symfony-debug-toolbar-git)
[![Travis CI](https://travis-ci.org/kendrick-k/symfony-debug-toolbar-git.svg?branch=develop)](https://travis-ci.org/kendrick-k/symfony-debug-toolbar-git) [![Scrutinizer CI](https://scrutinizer-ci.com/g/kendrick-k/symfony-debug-toolbar-git/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/kendrick-k/symfony-debug-toolbar-git/) [![Scrutinizer CI](https://scrutinizer-ci.com/g/kendrick-k/symfony-debug-toolbar-git/badges/build.png?b=master)](https://scrutinizer-ci.com/g/kendrick-k/symfony-debug-toolbar-git/)
[![Dependency Status](https://www.versioneye.com/user/projects/57e3991379806f00398308e9/badge.svg?style=flat-square)](https://www.versioneye.com/user/projects/57e3991379806f00398308e9)## 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](SymfonyDebugToolbarGit.png "SymfonyDebugToolbarGit")
![SymfonyDebugToolbarGit2.8](symfony_toolbar_2-8.png "SymfonyDebugToolbarGit2.8")
Information displayed :
+ **Branch** : active branch
+ **Time since last commit** : time since last commit at page generation1. 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 monthsUseful 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();
### Parametersapp/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