Search code examples
phpwindowsxamppcomposer-php

Can not find zip extension and unzip/7s commands


Creating a web project using Xampp and Composer.

Whenever I try to run the Composer command:

C:\> composer create-project laravel/laravel <project name>

It gives me a diagnostic message saying that zip extension and unzip/7s commands are missing. The command does create a project but then it doesn't connect with SQL in XAMPP.

Due to the zip extension and unzip/7s commands missing it doesn't install required packages to make the project run.

I have tried uninstalling and reinstalling Composer but the error persists. I am using php 8.2


Solution

  • Referring to the comments above, the problem was in the php.ini file. The zip extension was disabled, you need to enable the zip extension in php.ini.