remyjerome / ConsoleBundle

Commandline interface in browser for Symfony2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ConsoleBundle

Build Status Quality Score Code Coverage

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. Install via composer:

    composer require coresphere/console-bundle
  2. Register the bundle in you AppKernel in the development section

    // app/AppKernel.php
    public function registerBundles()
    {
       $bundles = [
     		// other bundles here...
       ];
    
       if (in_array($this->getEnvironment(), ['dev', 'test'])) {
       	// ...
       	$bundles[] = new CoreSphere\ConsoleBundle\CoreSphereConsoleBundle();
    	}
    
       return $bundles;
    }
  3. Add the bundle's route to your app/config/routing_dev.yml

    # app/config/routing_dev.yml
    
    # ...
    _main:
    	resource: routing.yml
    
    coresphere_console:
    	resource: .
    	type: extra
  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

About

Commandline interface in browser for Symfony2

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:PHP 52.7%Language:JavaScript 32.5%Language:HTML 9.4%Language:CSS 5.4%