i have same problem with you. i solve this with --ignore-platform-reqs you can visit this link to read https://stackoverflow.com/questions/29907807/how-to-install-laravel-on-a-server-running-different-php-versions
May 10, 2016
5
Level 34
Run composer commands with different php versions
I have two php versions installed on my system php 5.3 and php 5.6 When running commands in cmd for version check i got this :
php -v
PHP 5.3.28 (cli) (built: Dec 10 2013 22:27:36)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
and for php 5.6
php56 -v
PHP 5.6.17 (cli) (built: Jan 6 2016 13:28:21)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
I have path setup for both of these in my environment. Now while running composer create-project i get error because composer points to php 5.3 and laravel requires php >= 5.5
composer create-project laravel/laravel BlogSys
Installing laravel/laravel (v5.0.22)
- Installing laravel/laravel (v5.0.22)
Loading from cache
Created project in BlogSys
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for jeremeamia/superclosure 2.1.0 -> satisfiable by jeremeamia/SuperClosure[2.1.0].
- jeremeamia/SuperClosure 2.1.0 requires php >=5.4 -> your PHP version (5.3.28) does not satisfy that requirement.
Problem 2
- Installation request for laravel/framework v5.0.16 -> satisfiable by laravel/framework[v5.0.16].
- laravel/framework v5.0.16 requires php >=5.4.0 -> your PHP version (5.3.28) does not satisfy that requirement.
Problem 3
- Installation request for league/flysystem 1.0.2 -> satisfiable by league/flysystem[1.0.2].
- league/flysystem 1.0.2 requires php >=5.4.0 -> your PHP version (5.3.28) does not satisfy that requirement.
When i want to run this composer command appending php or (php56) before composer i got this error
php composer create-project laravel/laravel BlogSys
Could not open input file: composer
How can i impose composer to execute its command using specific version of php?
Please or to participate in this conversation.