winzou/console-bundle

This package is abandoned and no longer maintained. The author suggests using the coresphere/console-bundle package instead.

This bundle allows you accessing the symfony2 console via your browser

Installs: 28 729

Dependents: 0

Suggesters: 0

Security: 0

Stars: 37

Watchers: 6

Forks: 59

Language:JavaScript

Type:symfony-bundle

1.0.1 2013-02-22 08:46 UTC

This package is auto-updated.

Last update: 2022-02-01 12:21:46 UTC


README

This bundle allows you accessing the Symfony2 console via your browser.

Features

  • Colored output
  • Autocompletion for command names
  • Local command history (localStorage)
  • cache:clear works

Installation

  1. Add coresphere/console-bundle to your composer.json file and run composer.phar update

    // composer.json
    "require": {
        ...
        "winzou/console-bundle": "1.*",
        ...
    }
    
  2. Add the following route to your routing configuration

    #app/config/routing_dev.yml
    console:
        resource: "@CoreSphereConsoleBundle/Resources/config/routing.yml"
    
  3. Register the bundle in you AppKernel in the development section

    // app/ApplicationKernel.php
    public function registerBundles()
    {
        $bundles = array(
            // other bundles here...
        );
    
        if (in_array($this->getEnvironment(), array('dev', 'test'))) {
            // ...
            $bundles[] = new CoreSphere\ConsoleBundle\CoreSphereConsoleBundle();
        }
    
        return $bundles;
    }
    
  4. run the assets:install command to install the css and js files

    ./app/console assets:install web
    

Tips

  • Type .clear to clear the console window

Preview

Screenshot

Dependencies

  • jQuery
  • Twig

Compatibility

Tested with:

  • Chrome
  • Firefox 4
  • Opera 11
  • Safari 5

Todo

  • Write Javascript tests
  • Add console as "pop up" to web developer toolbar
  • Figure out how to allow interactive mode (possible? extreme hacky?)