1.依赖yaf-yar
- composer.json
{
"name":"jhq0113/yafr",
"description": "yar",
"keywords": ["php", "yaf","yar","mvc","di","ioc"],
"license": "MIT",
"homepage":"https://github.com/jhq0113/yafr",
"type": "framework",
"authors": [
{
"name": "Jiang Haiqiang",
"email": "jhq0113@163.com",
"homepage": "https://github.com/jhq0113",
"role": "Developer"
}
],
"require": {
"jhq0113/yaf-yar":"1.0.2"
}
}
- 1.2 安装
composer install
/yourpath/console/run.php [controllerName] [actionName] [param]