coresphere / console-bundle
此扩展包允许您通过浏览器访问symfony2控制台
0.5.0
2017-02-22 13:12 UTC
Requires
- php: ^5.5|^7.0
- symfony/console: ~2.7|~3.0
- symfony/dependency-injection: ~2.7|~3.0
- symfony/event-dispatcher: ~2.7|~3.0
- symfony/framework-bundle: ~2.7|~3.0
- symfony/http-kernel: ~2.7|~3.0
Requires (Dev)
- doctrine/doctrine-fixtures-bundle: ^2.2
- doctrine/doctrine-migrations-bundle: ^1.0
- phpunit/phpunit: ^4.8
- symfony/finder: ^2.7
- symfony/templating: ^3.2
This package is not auto-updated.
Last update: 2024-09-14 11:23:51 UTC
README
此扩展包允许您通过浏览器访问Symfony2控制台。
特性
- 彩色输出
- 命令名称自动补全
- 本地命令历史(localStorage)
cache:clear
有效
安装
-
请确保已安装php 5.5或更高版本。请确保您的composer文件没有通过
config.platform.php
设置覆盖项目所需的较旧版本的php版本。 -
通过composer安装最新版本
composer require coresphere/console-bundle
-
在开发部分注册该扩展包到您的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; }
-
将扩展包的路由添加到您的app/config/routing_dev.yml
# app/config/routing_dev.yml # ... _main: resource: routing.yml coresphere_console: resource: . type: extra
-
运行assets:install命令以安装CSS和JS文件
./app/console assets:install web
提示
- 输入
.clear
以清除控制台窗口
预览
依赖
- jQuery
- Twig
兼容性
测试平台
- Chrome
- Firefox 4
- Opera 11
- Safari 5