Laravel 5.4 PHP requirements (5.6.30 vs 5.6.40)

12,257

Solution 1

Laravel require php 5.6.4 as you can see here and XAMPP is 5.6.30 - This version is NEWER than 5.6.4 ( see all php versions here ) So no problems are expected becase you are using newer version than required by Laravel.

Solution 2

composer create-project --prefer-dist laravel/laravel (project name) 5.4.*

that will install the latest version of laravel supported by php 5.6 see in the attachment above

  composer create-project --prefer-dist laravel/laravel (project name) 5.4.*
Share:
12,257
Alain D'Ettorre
Author by

Alain D'Ettorre

Updated on June 04, 2022

Comments

  • Alain D'Ettorre
    Alain D'Ettorre almost 2 years

    I'd like to use Laravel 5.4 on my production server but the latest PHP 5.6 version available is 5.6.30 (as my local XAMPP installation as well), while the requirements for Laravel 5.4 are php >= 5.6.40 as for https://packagist.org/packages/laravel/laravel

    Now, I've successfully installed Laravel 5.4 on the server in a subdirectory via SSH and the home page is showing the Laravel logo. Is there some problems I could encounter using this version of PHP down the road? If so, is there any polyfill or adjustment to be made in order to use Laravel 5.4 on PHP 5.6.30 instead of PHP 5.6.40? Thanks