Fixed: the zip extension and unzip/7z commands are both missing xampp windows

If working with Laravel or any other PHP project and composer, you may face the error message “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: d:\xampp\php\php.ini now trying to download from source in gitdownloader.php line 82:” during the installation or running any of Composer command. This error occurs when Composer detects that the required extensions and commands for handling compressed files are missing on your Windows system.

You can edit the php.ini file and uncomment ;extension=zip to extension=zip to fix 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: windows \xampp\php\php.ini now trying to download from source in gitdownloader.php line.

Here are some steps to fix 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: d:\xampp\php\php.ini:

Step 1: Open the php.ini file. You can locate it in your PHP installation directory. For example, if you installed PHP in C:\php, the php.ini file should be in C:\php\php.ini.

Step 2: Search for the following line and uncomment it (remove the semicolon ; at the beginning of the line):

;extension=zip

Step 3: After making this change, it should look like:

extension=zip

Step 4: Save the php.ini file.

Step 5: Restart your web server and the Command Prompt or PowerShell window where you’ll run Composer commands.

Conclusion

Congratulations! You have successfully resolved the “The zip extension and unzip/7z commands are both missing, skipping” error during Composer installation on your xampp Windows system. You can now continue developing your Laravel project without any issues.

Recommended Tutorials

AuthorAdmin

My name is Devendra Dode. I am a full-stack developer, entrepreneur, and owner of Tutsmake.com. I like writing tutorials and tips that can help other developers. I share tutorials of PHP, Python, Javascript, JQuery, Laravel, Livewire, Codeigniter, Node JS, Express JS, Vue JS, Angular JS, React Js, MySQL, MongoDB, REST APIs, Windows, Xampp, Linux, Ubuntu, Amazon AWS, Composer, SEO, WordPress, SSL and Bootstrap from a starting stage. As well as demo example.

Leave a Reply

Your email address will not be published. Required fields are marked *