composer安装yii高级模版的php版本不符

现在要求php7.0以上

composer create-project --prefer-dist yiisoft/yii2-app-advanced apitpl

Installing yiisoft/yii2-app-advanced (2.0.22)
  - Installing yiisoft/yii2-app-advanced (2.0.22): Loading from cache
Created project in apitpl
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for codeception/verify ~1.0.0 -> satisfiable by codeception/verify[1.0.0]
.
    - codeception/verify 1.0.0 requires php >= 7.0 -> your PHP version (5.6.27) does not satisfy tha
t requirement.
  Problem 2
    - phpunit/phpunit 6.5.9 requires php ^7.0 -> your PHP version (5.6.27) does not satisfy that req
uirement.
    - phpunit/phpunit 6.5.8 requires php ^7.0 -> your PHP version (5.6.27) does not satisfy that req
uirement.
    - phpunit/phpunit 6.5.7 requires php ^7.0 -> your PHP version (5.6.27) doe
安装Yii框架,你需要先安装Composer,并配置中国镜像。你可以执行以下命令来设置中国镜像: composer config -g repo.packagist composer https://packagist.phpcomposer.com \[1\] 接下来,你需要安装Composer Asset插件。你可以使用以下命令来安装插件: php composer.phar global require "fxp/composer-asset-plugin:^1.2.0" \[2\] 如果你还没有下载composer.phar,你可以从https://mirrors.aliyun.com/composer/composer.phar下载。然后将composer.phar移动到你想要安装Yii2的目录下。接着,你需要安装Composer Asset插件的最新版本。你可以在https://packagist.org/packages/fxp/composer-asset-plugin查看最新版本。使用以下命令来安装插件: php composer.phar global require "fxp/composer-asset-plugin:^1.4.6" \[3\] 这样,你就可以开始安装Yii框架了。 #### 引用[.reference_title] - *1* [composer安装以及使用composer安装Yii框架](https://blog.csdn.net/weixin_30633949/article/details/99610241)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [使用composer安装Yii框架](https://blog.csdn.net/weixin_42980713/article/details/86570784)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [php使用composer下载安装并搭建yii2高级应用模板框架](https://blog.csdn.net/qq_41741884/article/details/103613073)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值