Reputation: 144
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
Upvotes: 2
Views: 14276
Reputation: 23
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.*
Upvotes: 1
Reputation: 1
Laravel 5.4 is compatible with PHP 7.x. Please check the following article. https://murze.be/2016/01/why-we-are-requiring-php-7-for-our-new-packages/
Upvotes: 0
Reputation: 732
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.
Upvotes: 6