Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

EllenK's avatar
Level 1

How do you update the version of php an app is using?

My host is updating to 8.2 php unfortunately my site (a laravel app) is not compatible with PHP 8.2

Your current PHP version (7.4) is no longer supported by the PHP developers and upgrading to 8.2 will ensure that your site will continue to work properly in the future when the time comes to deprecate PHP 7.4 from our servers.

How do I update my app? Would this be in the Composer.json file only?

0 likes
4 replies
Tray2's avatar

You have a few options, one is to use a paid service called Laravel Shift, that helps you do the upgrade, the other is to manually upgrade your laravel app, starting with the upgrade guides for each version.

Here is a list of them. Don't know which version you are on though,

https://laravel.com/docs/7.x/upgrade

https://laravel.com/docs/8.x/upgrade

https://laravel.com/docs/9.x/upgrade

https://laravel.com/docs/10.x/upgrade

https://laravel.com/docs/11.x/upgrade

1 like
Unsociable's avatar

What version of Laravel are you on? I've recently updated from PHP 8.2 to 8.3 and Laravel 10 to 11 for a project and it was fairly simple once I worked it out. Are you able to install and work locally with say PHP 8.2 or even 8.3 to test it?

timgavin's avatar

@Unsociable Yes, you can work locally with any version of PHP as long as Laravel supports it. The older versions are more difficult and time consuming to upgrade, so, depending on which version of Laravel your other app is using you might want to look into Shift as @tray2 suggested, as it will make things much easier.

You may also want to look into Herd or Valet, as both will dramatically help your local development, Laravel or otherwise.

EllenK's avatar
Level 1

@Unsociable

I checked the composer.json file and it says:

"require": { "laravel/framework": "4.1.*" },

I'm not sure where else to check in the project. I have never been successful opening this project on my local machine. I've tried using the Homestead/Virtual machine, no success there. I am now trying to use Herd. But now coming into this error.

Please or to participate in this conversation.