安裝laravel 5.3我按照安裝此教程wampserver http://ryanstelmat.com/upgrading-wamp-server-to-php-7/我安裝了PHP 7.1,但我不能與作曲家
我支持PHP 7.1安裝PHP 7.1,我看到它在phpinfos,但是當我想用作曲家安裝最新版本laravel的:
composer create-project laravel/laravel blog "5.3"
我收到此錯誤信息
[InvalidArgumentException]
Could not find package laravel/laravel with version 5.3 in a version instal
lable using your PHP version 5.5.12.
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--r
epository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no
-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vc
s] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<vers
ion>]
一樣,如果它不知道我升atest php版本。
我該如何解決這個問題?
感謝
嘗試'PHP -v',用'whereis php'一起。它可能使用了錯誤的版本。 – aynber
這可能是有幫助的:http://stackoverflow.com/questions/15673334/composer-to-use-newer-version-of-php – aynber
php -v show me php 5.5.12,phpinfo localhost show php 7.1.0 – Zeta