Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<RequirementsResource Types>
^Installing/ConfiguringLast updated: Mon, 26 Oct 2026

Installation

Linux systems

In order to use these functions PHP must be compiled with ZIP support by using the --with-zip configure option.

Prior to PHP 7.4.0, libzip was bundled with PHP, and to compile the extension one needed to use the --enable-zip configure option. Building against the bundled libzip was discouraged as of PHP 7.3.0, but still possible by using the --without-libzip configure option.

A --with-libzip=DIR configure option has been added to use a system libzip installation. libzip version 0.11 is required, with 0.11.2 or later recommended.

Windows

As of PHP 8.2.0, php_zip.dll DLL must be enabled in php.ini. Previously, this extension was built-in.

Installation via PECL

Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: » https://pecl.php.net/package/zip.


<RequirementsResource Types>
^Installing/ConfiguringLast updated: Mon, 26 Oct 2026