how to upgrade laravel version from 5.0.33 to 6.x - php

I have changed php version to 7.1.3 and also Laravel version in composer.json file. Then simply use composer update but nothing happens. I need help.

PHP 7.1 will no longer be actively maintained as of December 2019. Therefore, Laravel 6.0 requires PHP 7.2 or greater.just follow the documentation https://laravel.com/docs/6.x/upgrade

Related

Laravel upgrade Issue (7.4 to 8.0)

I have tried to update the Laravel version to 8.0 from 7.4. While giving "composer update" I'm facing the following error.
And my PHP version is 7.4.
You need version 1.0.1 or higher of jwtauth as you can see on https://packagist.org/packages/tymon/jwt-auth#1.0.1 to have it support version 8 of Laravel.
Change your version requirement in composer.json to ^1.0.1.

Does Laravel 5.2 support PHP 7.2

I have project developed in Laravel 5.2 version. But now I want to upgrade only PHP version to 7.3 So can anyone let me know that if Laravel 5.2 works with PHP latest versions.
I want laravel version to be unchanged but with latest PHP version that is PHP 7.2+
It is highly recommend to upgrade your Laravel version in this case as Laravel 5.2 supports PHP version between 5.5.9 - 7.1.* as per documentation but if you have concerns you can tweak the php version to 7.2 and test if its works.
To change the php version just add below code to your composer.json file.
"config": {
"platform": {
"php": "7.2"
}
}
after that run composer update if you get any error you can always revert it back by tweaking the version again in composer.json file

Downgrade PHP from 5.6 to 5.5 on Ubuntu 16.10

I'm trying to downgrade PHP version from 5.6 to 5.5 on Ubuntu 16.10.
After all the research I've done, the main repository from Ondrej,
does not include 5.5 version anymore. none of the other repositories I try'ing to install contain PHP 5.5.
Does anyone know a solution for this?
Tnx
you need to downgrade your ubuntu or else you need to use php 7, php 5.5 is outdated for ubuntu 16.04

Laravel 5.4 PHP requirements (5.6.30 vs 5.6.40)

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
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.
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.*
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/

ZF2 install via Composer getting wrong PHP version

I have to install ZF2 on Windows:
I've clone ZendSkeletonApplication (ZSA) repository from Git
Open cmd and get in ZSA folder
run php composer.phar self-update (everything is ok)
run php composer.phar install
And now I get this:
zendframework/zendframework 2.3.1 requires php >=5.3.23 -> no matching package found.
Okay, I've checked php version php -v:
PHP 5.3.6 (cli) (built: Mar 17 2011 10:37:07)
Any ideas?
ZF 2.3.0 and above requires PHP 5.3.23 or above. You have 5.3.6 (6 is less than 23!). You either need to upgrade PHP to a more recent version, or downgrade to ZF 2.2.x.
5.3.6 is less than 5.3.23. >= means "greather than or equal to".
Zend Framework 2 requires at least 5.3.23, while you have 5.3.6. That means your PHP version is not supported, you can't use the Zend Framework on that server.
What you can do:
Update PHP version to something newer (5.3 is getting pretty old)
If you are sure you already have a newer PHP version installed, check that the cmd is using the new PHP binary and not the old one.
I suggest you update your local Windows version of PHP to the version you are using in production. If that production version is not able to run Zend Framework 2.3.1, you'd not benefit from solving the dependency problem you are experiencing.
Composer does not allow you to change the internally used PHP version if your local PHP is simply used to put together all dependencies but to used to execute these. So matching the production version is a good thing.

Categories