likai/yii-webserver
Composer 安装命令:
composer require likai/yii-webserver
包简介
Yii development web server
关键字:
README 文档
README
Requirement
- PHP >= 5.4
- Yii Framework
Installation
Using composer install
Add package to require-dev section of composer.json file
{
"require-dev": {
"likai/yii-webserver": "dev-master"
}
}
Update composer from terminal
composer update
Config
Set path alias to your your-project/protected/config/console.php file to the first line
Yii::setPathOfAlias('Likai', __DIR__ . '/../../vendor/likai/yii-webserver/src/Likai');
Add command to your your-project/protected/config/console.php file
return array(
'commandMap' => array(
'serve' => array(
'class' => '\\Likai\\YiiWebserver\\ServerCommand',
'host' => '127.0.0.1',
'port' => '8888',
),
),
);
Manual install
- Download yii-webserver.zip
- Unzip this file
- Move directory
likai/yii-webserver/src/Likai/YiiWebservertoyour-project/protected/extensions/YiiWebserver
Config
Add commandMap to your your-project/protected/config/console.php file
return array(
'commandMap' => array(
'serve' => array(
'class' => 'ext.YiiWebserver.ServerCommand',
'host' => '127.0.0.1',
'port' => '8888',
),
),
);
Usage
yiic serve index [--host=] [--port=] [--root=] [--router=]
DESCRIPTION
This command provider development web server
PARAMETERS
--host host address
--port host port
--root document root
--router router script file
统计信息
- 总下载量: 125
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: New
- 更新时间: 2013-07-16