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

rjsargeant's avatar

Errors Installing Laravel under PHP 8.2

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.

Any thoughts would be appreciated.

0 likes
12 replies
MohamedTammam's avatar

Update your Laravel command or create a new project via composer.

rjsargeant's avatar

Thanks for your quick response. But I have updated and I have created a new project via composer but with the same result.

prasanth's avatar

You need to enable the php_zip.dll extension

2 likes
Omar_M_Ahmad's avatar

The solution is in this video , https : // www.youtube.com / embed / tDOVnILBjv4 ... Note: The spaces in the link must be removed .

1 like
Yassine_lab's avatar

The solution : Open your php.ini file and remove the ";" at line : extension=zip !

9 likes
purva's avatar

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.

Please or to participate in this conversation.