php8.5
Home/ Manual/ reference / zip/ Linux systems

Linux systems

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

Install

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 Ini. Previously, this extension was built-in.

Installation via PECL

Info Packagezip.

Source: reference/zip/configure.xml · from the official PHP manual (php/doc-en)