Developed with love by KnpLabs Hire us for your project!
40

GitDebugBundle

by leek

Adds useful Git information to the Symfony2 Debug Toolbar

LeekGitDebugBundle

Adds useful Git information to the Symfony2 debug toolbar.

Current branch in toolbar (Symfony 2.1)

Example Toolbar

Branch list in menu

Example Menu #1

Tag list in menu

Example Menu #2

Installation (Symfony 2.0.x only)

1. Add the following to your deps file:
    [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
// ...
    $loader->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
// ...
    if (in_array($this->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

leek_git_debug:       []
  • Merge pull request #3 from mediashowroom/master
    By leek, 4 years ago
  • Don't access class properties when trying to get branch data. Load it directly from file system
    By poepperl, 4 years ago
  • Change screenshot to Symfony 2.1
    By leek, 4 years ago
  • Update master
    By leek, 4 years ago
  • Update README.md
    By leek, 4 years ago
  • * Coding Standards Updates - Refs #2
    By leek, 4 years ago
  • Update composer.json
    By leek, 4 years ago
  • Merge pull request #1 from willdurand/fix-wdt
    By leek, 4 years ago
  • Updated template for Symfony2 2.1
    By willdurand, 4 years ago
  • `<?php` is required for PHP syntax highlighting to work
    By leek, 4 years ago
  • Updated `README.md` with some cleanup and screenshots
    By leek, 5 years ago
  • Fixing small bug when refs doesn't exist
    By leek, 5 years ago
  • I thought I updated this once already... ಠ_ಠ
    By leek, 5 years ago
  • Updating `composer.json` with new wording
    By leek, 5 years ago
  • Updating `README.md` with new features
    By leek, 5 years ago
  • Adding branch/tag list to profiler view
    By leek, 5 years ago
  • Updating composer.json
    By leek, 5 years ago
  • Updating image in `README.md` with new icon
    By leek, 5 years ago
  • Merge branch 'master' of github.com:leek/GitDebugBundle
    By leek, 5 years ago
  • Converted icons to gray scale
    By leek, 5 years ago
  • Correcting wrong `git` URL
    By leek, 5 years ago
  • Fixing formatting in `README.md`
    By leek, 5 years ago
  • Adding first version
    By leek, 5 years ago