Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leek/gitdebugbundle
Adds useful Git information to the Symfony2 Debug Toolbar
https://github.com/leek/gitdebugbundle
symfony2 symfony2-bundle
Last synced: 2 days ago
JSON representation
Adds useful Git information to the Symfony2 Debug Toolbar
- Host: GitHub
- URL: https://github.com/leek/gitdebugbundle
- Owner: leek
- Archived: true
- Created: 2012-01-30T22:09:11.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-02-12T09:33:50.000Z (over 8 years ago)
- Last Synced: 2024-09-25T04:01:27.229Z (2 days ago)
- Topics: symfony2, symfony2-bundle
- Language: PHP
- Homepage:
- Size: 20.5 KB
- Stars: 22
- Watchers: 3
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LeekGitDebugBundle [![Maintenance](https://img.shields.io/badge/still_maintained-no-red.svg?style=flat)]()
Adds useful Git information to the Symfony2 debug toolbar.
##### Current branch in toolbar (Symfony 2.1)
![Example Toolbar](http://i.imgur.com/Sa6z0.png)
##### Branch list in menu
![Example Menu #1](http://i.imgur.com/A7qZk.png)
##### Tag list in menu
![Example Menu #2](http://i.imgur.com/hEss5.png)
## Installation **(Symfony 2.0.x only)**
##### 1. Add the following to your `deps` file:
```ini
[LeekGitDebugBundle]
git=git://github.com/leek/GitDebugBundle.git
target=bundles/Leek/GitDebugBundle
version=origin/2.0
```
##### 2. Run the vendors install script:```
php bin/vendors install
```
##### 3. Add the `Leek` namespace to `app/autoload.php`:```php
registerNamespaces(array(
// ...
'Leek' => __DIR__.'/../vendor/bundles',
```
##### 4. Setup the bundle to load only on your `dev` or `test` environment(s) in `app/appKernel.php`:
```php
getEnvironment(), array('dev', 'test'))) {
// ...
$bundles[] = new Leek\GitDebugBundle\LeekGitDebugBundle();
```
That's it! You should now see your current Git branch on the debug toolbar.> **Note:** A `composer.json` file is also provided if you prefer to use Composer. The `require` key is: [leek/git-debug-bundle](http://packagist.org/packages/leek/git-debug-bundle)