返回首页
当前位置: 主页 > 网络编程 > Php实例教程 >

Composer.json文件格式

时间:2015-09-21 21:17来源:知行网www.zhixing123.cn 编辑:麦田守望者

使用Composer安装依赖包是现在的一个标准方式,一般都会放一个Composer.json格式文件,里面附上需要的包,在命令行运行composer install即可自动下载安装指定的资源。一个标准的Composer.json文件格式如下:

{
"name": "MoBlog",
"description": "一个基于Yii2的博客系统",
"keywords": ["moblog", "yii2"],
"homepage": "https://github.com/mojifan/MoBlog",
"type": "project",
"license": "MIT",
"support": {
"source": "https://github.com/mojifan/MoBlog"
},
"minimum-stability": "stable",
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": "*",
"yiisoft/yii2-bootstrap": "*",
"yiisoft/yii2-swiftmailer": "*",
"bower-asset/eonasdan-bootstrap-datetimepicker":"*",
"npm-asset/bootstrap-markdown":"~2.7",
"npm-asset/markdown":"*",
"fxp/composer-asset-plugin": "*",
"moxiecode/plupload":"*"
},
"require-dev": {
"yiisoft/yii2-codeception": "*",
"yiisoft/yii2-debug": "*",
"yiisoft/yii2-gii": "*",
"yiisoft/yii2-faker": "*"
},
"config": {
"process-timeout": 1800
},
"extra": {
"asset-installer-paths": {
"npm-asset-library": "vendor/npm",
"bower-asset-library": "vendor/bower"
}
}
}

------分隔线----------------------------
标签(Tag):php php教程 php实例教程 php5 php源代码 php基础教程 php技巧 php6
------分隔线----------------------------
推荐内容
猜你感兴趣