0

I have followed to install this tutorial to install php 7.1 in wampserver http://ryanstelmat.com/upgrading-wamp-server-to-php-7/

I enabled php 7.1 and I see it in phpinfos, but when I want to install latest version of laravel using composer :

composer create-project laravel/laravel blog "5.3"

I get this error message

  [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>]

Like if it doesn't know my latest php version.

How I can fix that?

Thanks

Zeta
  • 663
  • 1
  • 12
  • 27

1 Answers1

0

try this to install laravel

composer create-project --prefer-dist laravel/laravel blog
Arun Code
  • 1,548
  • 1
  • 13
  • 18
  • it install laravel 5.2 not latest one. when I test with php -v I see php 5.5.12 – Zeta Jan 17 '17 at 13:36
  • php -v will give you the installed php version. Not the laravel version. Open composer.json file and see which version of laravel is installed. – Arun Code Jan 17 '17 at 13:39
  • and one more thing is if php --v shows 5.~, it means, your system is still using php version 5.~ and not php7.1. Try to change the environment variables in windows system settings and make sure php -v shows 7.1 – Arun Code Jan 17 '17 at 13:40
  • I have changed my environment path but sitll show php 5: C:\wamp\bin\php\php5.5.12\ext\imagick;C:\Program Files\nodejs\;C:\wamp\bin\php\php7.1.0;C:\ProgramData\ComposerSetup\bin; – Zeta Jan 17 '17 at 13:43
  • try removing the environment variables related to php 5.~ and restart your wamp server. – Arun Code Jan 17 '17 at 13:52