Встановлення

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

Інструкція щодо встановлення цього PECL-розширення є в розділі посібника Встановлення PECL-розширень. Більше інформації, як от нові випуски, файли для завантаження, файли з початковим кодом, інформація для дописувачів та список змін знаходиться тут: » https://pecl.php.net/package/zip.