Use PHP 7.0.10 on CLI with WAMP

I have a WAMPServer 3.0.6 with PHP 7.0.10 installed. I am using Git Bash to use the server-side cli for my projects, mainly Laravel. There's a package that requires PHP 7.0 to work, and even that my WAMP server uses PHP 7 to run, it can't figure out the correct PHP version on the command line.

When I use php -v

I get

PHP 5.6.25 (cli) (built: Aug 18 2016 11:39:15)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

      

How can I get the CLI to use 7.0.10?

+3


source to share





All Articles