"The zip extension and unzip/7z commands are both missing, skipping" in Windows during Composer install of Laravel

"The zip extension and unzip/7z commands are both missing, skipping" in Windows during Composer install of Laravel

  1. Blog
  2. 15 November 2026
  3. 4 min read

Stefan Bogdanescu

Founder & Senior Architect

The zip extension and unzip/7z commands are both missing, skipping

When running composer install on a Windows machine to bootstrap a new Laravel project, you might encounter an abrupt halt with this specific error message: "Failed to download symfony/process from dist: The zip extension and unzip/7z commands are both missing, skipping."

This isn't a PHP syntax error or a Composer version mismatch; it is a fundamental requirement check failing because the environment lacks the tools necessary to unpack package archives. To resolve this, you must address two distinct components: the PHP runtime library required to handle zip files internally, and the system utility required by Composer to download those archives in the first place.

Enabling the PHP Zip Extension

The first component is the PHP zip extension. Modern PHP distributions on Windows often do not include this extension enabled by default because it adds roughly 2MB of memory overhead when not strictly necessary for the application logic. However, Composer relies on this extension to handle package downloads that come in .zip format directly from Packagist.

If you are running PHP via XAMPP, WAMP, or a standalone installer, check your php.ini file (usually located in the same directory as your php.exe). Look for lines containing extension=zip. If they exist but start with a semicolon (;), remove the semicolon to enable it.

If you are using PHP built directly from php.net or via Docker, ensure you have added zip to your pecl extension list during compilation or installed it via package manager commands like apt-get install php-zip. Once enabled, restart your web server or PHP-FPM service for the change to take effect. You can verify this by running php -m in your terminal and confirming that zip appears in the output.

Installing System-Level Unzipping Tools

The second component is more critical if you are using a fresh Windows environment: the system utility itself. Composer, when acting as a downloader, attempts to use the native unzip command line tool before falling back to 7-Zip or other alternatives. If neither is found in your system PATH, Composer throws the error you encountered.

Even though PHP can handle zip files internally, Composer's download logic prioritizes external tools for speed and compatibility. To fix this on Windows without relying solely on the php-zip extension (which can sometimes be slow during downloads), you need to install a command-line unzip utility.

The most robust solution is to install 7-Zip, which is already bundled with the majority of modern Windows distributions. However, Composer prefers the standard unzip command if available. You can achieve this by using the built-in Windows Package Manager (winget), Chocolatey, or simply downloading the standalone executable.

Using winget

If you have Windows 10 (version 1903+) or later with the optional feature "Windows Package Manager" enabled, run the following in PowerShell or CMD:

winget install -e --id 7zip.7zip

Or specifically for the unzip command if your version supports it:

winget install UnofficialPackage.UnZip

Using Chocolatey

If you prefer Chocolatey, ensure it is installed first, then run:

choco install zip unzip

After installation, verify that the unzip command is accessible by running where unzip or simply trying unzip -h. If both the PHP extension and the system tool are present, retry your Composer installation.

Understanding the Trade-offs

Why does Composer check for these tools? The default behavior of Composer involves downloading packages as zip files from Packagist. Extracting a large archive in memory using only PHP (via ZipArchive) is functional but can be significantly slower than extracting to disk first. By detecting an external unzip or 7z executable, Composer offloads the decompression work to native C/C++ libraries, resulting in faster installation times.

Without these tools, Composer defaults to a slower streaming method or skips the download entirely if it cannot determine how to handle the archive, leading to the "skipping" behavior you saw. The error message is explicit: it is trying to be helpful by skipping the problematic package rather than crashing, but for a fresh Laravel install, that skip means the project remains incomplete.

Verifying the Fix

Once you have enabled the zip extension in your php.ini and installed the unzip tool via your preferred package manager, clear your Composer cache to ensure no stale metadata interferes:

composer clear-cache

Then, navigate to your project directory and run:

composer install

If the installation proceeds without errors and you see progress bars for packages like symfony/process completing successfully, the environment is now correctly configured. If you encounter issues with specific Windows distributions or shared hosting environments where you cannot modify system binaries, consider switching to a Linux-based container (like Docker) or using a local WSL2 instance, which typically comes with these utilities pre-configured and avoids the need for manual path adjustments.

Our network