jimothee's avatar

php version does not satisfy that requirement composer laragon, How do i fix this

I recently bought Laragon and when i tried to make a controller in my new laravel project it told me: "PHP Fatal error: Uncaught RuntimeException: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.3.0". You are running 8.2.12. in C:\laragon\www\qna\vendor\composer\platform_check.php:22 Stack trace:"

Im confused because I have the latest version of composer and php, but when I php -v it says my version is PHP 8.2.12, but in Laragon its the latest version. I tried running things like sudo composer self-update, but that did nothing. Help would be appreciated.

0 likes
6 replies
martinbean's avatar

@jimothee You’ve said yourself that running php -v says your PHP version is 8.2, and Laravel is telling you that it requires a version of PHP that is 8.3 or above. Well when you run Artisan (a CLI tool) it’s going to use the CLI version of PHP, which is not PHP 8.3 or above.

imranbru's avatar

this is simple issue, i solve these type just removing the condition which is located C:\laragon\www\qna\vendor\composer\platform_check.php then it's ok

jimothee's avatar

I want to update my php version though to match the one laragon uses, which is the latest

DigitalArtisan's avatar

Im confused because I have the latest version of composer and php,

No you don't.

The latest stable PHP version is 8.5.5, released on April 9, 2026.

bytepi's avatar

Have you tried another app called Larabox. Do give it a try.

Please or to participate in this conversation.