Can you show the output of which composer? Are you running these commands in the windows command line or git bash?
Composer php version error
I wonder if someone can help me with a composer error.
I run Laravel 9 on Windows 10.
I just installed this package: https://spatie.be/docs/laravel-livewire-wizard/v1/introduction
and now I get this error: Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 8.0.13. in C:\wamp64\www\highland9.local\vendor\composer\platform_check.php on line 24
After googling it I check all of these:
php version on Wamp shows 8.1.0
Windows path points to: c:\wamp64\bin\php8.1.0
cmd php -v shows: 8.1.0
In my composer.json file:
it was:
"require": {
"php": "^8.0.2",
I changed it to:
"php":"^8.1.0"
and ran composer update
I tried removing the package like this:
composer remove vendor/spatie/laravel-livewire-wizard
It said there's nothing to remove.
I renamed the folder to laravel-livewire-wizardDEL
I removed the line:
"spatie/laravel-livewire-wizard": "^1.1",
from composer.json and ran composer update
Nothing helps, still get this error.
Can someone please help?
Ok, fixed it!!!
On Wamp icon - YourVirtualHosts - Virtual Host management. It opens in the browser and gives an option to modify the virtual host form and change the php version it uses.
Geezzzz, almost lost the will to live.
Thank you @sinnbeck
Please or to participate in this conversation.