Yaconf is a high performance configuration management extension. The installation process is as follows:

Begin by installing PECL

1. Install the Pear

sudo php /usr/lib/php/install-pear-nozlib.phar

You may encounter the following error

This is because my native PHP version is 7.0.15, and the PEAR package hasn’t been updated yet

2. Install the latest PEAR


sudo php 

Next select the PEAR installation directory (1), and the binary command directory (4), and enter the directory you want to store

Install Yaconf

1. Install

pecl install yaconf

The following error occurred

2. Update the pecl.php.net

sudo pecl channel-update pecl.php.net

3. The installation was successful with root

sudo pecl install yaconf

Differences between PEAR and PECL

PEAR (PHP Extension and Application Repository) provides a Repository of extensions and applications written in PHP that can be included in projects. PECL (PHP Extension Community Library) provides a set of PHP Extension libraries written in C ++. So (Shared Object), similar to DLLs

In summary, PEAR is the upper layer extension to PHP, and PECL is the lower layer extension to PHP