coresphere/console-bundle

此扩展包允许您通过浏览器访问symfony2控制台

安装次数: 323,101

依赖者: 6

建议者: 1

安全性: 0

星标: 140

关注者: 16

分支: 54

开放问题: 18

类型:symfony-bundle

0.5.0 2017-02-22 13:12 UTC

README

Build Status Quality Score Code Coverage

此扩展包允许您通过浏览器访问Symfony2控制台。

特性

  • 彩色输出
  • 命令名称自动补全
  • 本地命令历史(localStorage)
  • cache:clear有效

安装

  1. 请确保已安装php 5.5或更高版本。请确保您的composer文件没有通过config.platform.php设置覆盖项目所需的较旧版本的php版本。

  2. 通过composer安装最新版本

    composer require coresphere/console-bundle
  3. 在开发部分注册该扩展包到您的AppKernel

    // app/AppKernel.php
    public function registerBundles()
    {
       $bundles = [
     		// other bundles here...
       ];
    
       if (in_array($this->getEnvironment(), ['dev', 'test'])) {
       	// ...
       	$bundles[] = new CoreSphere\ConsoleBundle\CoreSphereConsoleBundle();
    	}
    
       return $bundles;
    }
  4. 将扩展包的路由添加到您的app/config/routing_dev.yml

    # app/config/routing_dev.yml
    
    # ...
    _main:
    	resource: routing.yml
    
    coresphere_console:
    	resource: .
    	type: extra
  5. 运行assets:install命令以安装CSS和JS文件

    ./app/console assets:install web

提示

  • 输入.clear以清除控制台窗口

预览

Screenshot

依赖

  • jQuery
  • Twig

兼容性

测试平台

  • Chrome
  • Firefox 4
  • Opera 11
  • Safari 5