When I try to do a new install of Laravel under PHP 8.2, I am inundated with errors such as:
Failed to download laravel/laravel from dist: The zip extension and unzip/7z commands are both missing, skipping. The php.ini used by your command-line PHP is: C:\Program Files\Ampps\php82\php.ini
Now trying to download from source
I have no problems doing a new install of laravel under PHP 8.1.
I tried all the mentioned solutions but still getting the same error. I then added 'extension=php_zip.dll' to php.ini file in apache and also commented out 'extension=zip' in C:/Program Files/PHP/php.ini
This is happening because as of PHP 8.2.0, php_zip.dll DLL must be enabled in php.ini. Previously, this extension was built-in.