greghubs/console-bundle

此组件允许您通过浏览器访问 symfony4 控制台 - 基于 coreSphere 组件,增加了 SF4 兼容性

安装: 8

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 54

类型:symfony-bundle

0.5.0 2017-02-22 13:12 UTC

This package is auto-updated.

Last update: 2024-09-22 02:26:54 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