jdecool / git-profiler-bundle
Add Git repository informations into Symfony profiler
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Language:HTML
Type:symfony-bundle
Requires
- php: >=5.4.0
- cypresslab/gitelephant: ^1.1
- symfony/symfony: ~2.3|~3.0
This package is not auto-updated.
Last update: 2020-01-24 15:52:14 UTC
README
Just add Git branch/repository informations into the Symfony profiler.
Installation
Simply run assuming you have installed composer :
$ php composer.phar require jdecool/git-profiler-bundle "^1.0"
Configuration
Register the bundle in app/AppKernel.php
:
// app/AppKernel.php public function registerBundles() { $bundles = array(/* ... */); if (in_array($this->getEnvironment(), array('dev', 'test'), true)) { // ... $bundles[] = new JDecool\Bundle\GitProfilerBundle\JDecoolGitProfilerBundle(); } return $bundles; }
Your git binary path is discovered using which git
where supported but you can specifically set the path via config :
j_decool_git_profiler: git_binary_path: /usr/local/bin/git