我尝试在只有
PHP 5.5.6的主机上安装Laravel 5.1.当我要求客户进行升级时,这可能是不可行的/可行的.
所以我得到:@H_301_2@
- This package requires PHP >=5.5.9 but your PHP version (5.5.6) does not satisfy that requirement.
在composer.phar安装.@H_301_2@
有没有办法做一个忽略这种依赖的作曲家安装?@H_301_2@
您可以使用–ignore-platform-reqs选项来进行编辑器命令,如安装,更新等.
–ignore-platform-reqs: ignore PHP,hhvm,lib-* and ext-* requirements and force the installation even if the local machine does not fulfill these. See also the platform config option.@H_301_2@
https://getcomposer.org/doc/03-cli.md@H_301_2@
所以你可以试试@H_301_2@
composer install --ignore-platform-reqs