Install the ZIP extension in PHP8 and use the source code to install the ZIP extension in PHP extension

Install the ZIP extension in PHP extension in Centos. After PHP is upgraded from 7.X to PHP8.X, two PHP extensions become invalid, one is the imagick extension and the other is the ZIP extension. After uninstalling the original imagick extension, use the pecl command to install it in the official PHP extension library. When installing the ZIP extension, it fails and it is found to be a problem with libzip. Install the ZIP extension.

Centos uses the pecl command to install the PHP extension. Enter the php extension name to install it

The Pecl command can be used to install PHP extensions, which can solve the problem in minutes. Previously, PHP extensions were installed by downloading source code and compiling and installing them. In the end, I was confused. I searched online and found that I could use the Pecl command to install it. It is so convenient! Here is how to install PHP extensions using the Pecl command. PECL is a repository for PHP extensions, which provides a directory of all known extensions and hosting facilities for downloading and developing PHP extensions.