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

vincent15000's avatar

PHP 7.4 to 8.0

Hello,

I have this composer.json file (require part) in an application.

"php": "^7.3|^8.0",
"barryvdh/laravel-dompdf": "^0.9.0",
"clegginabox/pdf-merger": "dev-master",
"daltcore/lara-pdf-merger": "^2.0",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/fortify": "^1.7",
"laravel/framework": "^8.12",
"laravel/tinker": "^2.5",
"livewire/livewire": "^2.4",
"maatwebsite/excel": "^3.1",
"mercuryseries/flashy": "^1.0",
"phpoffice/phpspreadsheet": "^1.17",
"smalot/pdfparser": "^0.19.0"

I'd like to upgrade the PHP version from 7.4 to 8.0 for this application in production.

Is there any precautions to take before this PHP upgrade ?

Thanks for your suggestions ;).

V

0 likes
2 replies
LaryAI's avatar
Level 58

It is possible to upgrade from PHP 7.4 to 8.0, however, it is important to check the compatibility of the packages you are using. You can check the compatibility of each package by looking at the package's documentation or by running composer update to see if any errors occur.

It is also important to make sure that your server is running the latest version of PHP 8.0. You can check this by running php -v in the command line.

Finally, it is recommended to make a backup of your application before upgrading to ensure that you can revert back to the previous version if any issues arise.

Good luck!

1 like

Please or to participate in this conversation.