How to work with ubuntu php version to update composer

I am trying to update a symfony project using composer. I am facing some strange problem, I'm not quite sure how to handle it. My php version is high enough for an update, but formatting it in such a way that the composer won't let me update. Here is my error message:

Your requirements could not be resolved to an installable set of packages. Problem 1 - symfony/symfony v3.0.1 requires php >=5.5.9 -> your PHP version (5.6.11-1ubuntu3.1) does not satisfy that requirement. - symfony/symfony v3.0.0 requires php >=5.5.9 -> your PHP version (5.6.11-1ubuntu3.1) does not satisfy that requirement. - Installation request for symfony/symfony 3.0.* -> satisfiable by symfony/symfony[v3.0.0, v3.0.1]. 

As you can see, my php version is really high enough for the update, however the composer says no. How to make her update anyway?

+6
source share
1 answer

How to make her update anyway?

Using the -ignore-platform-reqs option compiler, ignore all php, ext- *, lib- * requirements and force installation, even if the local machine does not perform these functions.

 composer install --ignore-platform-reqs 

 composer update --ignore-platform-reqs 

This option is also available for create-project , remove and require .

The documentation can be read here .

+10
source

All Articles