How to update the PHP version in Laravel?

2

I tried to install a dependency and it asked for a larger version of PHP.

Problem 1
  
  • illuminate / support v5.3.4 requires php > = 5.6.4 - > your PHP version (5.5.9) does not satisfy that requirement.
  •   
  • illuminate / support v5.3.16 requires php> = 5.6.4 - > your PHP version (5.5.9) does not satisfy that requirement.
  •   
  • illuminate / support v5.3.0 requires php> = 5.6.4 - > your PHP version (5.5.9) does not satisfy that requirement.
  •   
  • elibyy / tcpdf-laravel 5.3.0 requires illuminate / support 5.3.x - > satisfiable by illuminate / support [v5.3.0, v5.3.16, v5.3.4].
  •   
  • Installation request for elibyy / tcpdf-laravel 5.3. * - > satisfiable by elibyy / tcpdf-laravel [5.3.0].
  •   

Is there a way to update the php version in composer.json ?

    
asked by anonymous 06.10.2016 / 16:22

1 answer

1
  

Is there a way to update the php version in composer.json ?

There is no such thing as "updating PHP" through Composer. What can be done is to change the version required for the application to work.

However, in your case, you really need to update PHP on your operating system, since the default Laravel 5.3 requirement requires PHP 5.6.4 >= , and you are using the 5.5.9 .

So, install the required PHP version, which will solve the problem.

Maybe this question will help:

How to install php-5 on ubuntu?

    
14.12.2016 / 17:13