How to install php extension using pecl for specific php version, when several php versions installed in system?

Here’s what worked best for me when trying to script this (in case anyone else comes across this like I did): $ pecl -d php_suffix=5.6 install <package> $ pecl uninstall -r <package> $ pecl -d php_suffix=7.0 install <package> $ pecl uninstall -r <package> $ pecl -d php_suffix=7.1 install <package> $ pecl uninstall -r <package> The … Read more

What are differences between PECL and PEAR?

PECL stands for PHP Extension Community Library, it has extensions written in C, that can be loaded into PHP to provide additional functionality. You need to have administrator rights, a C compiler and associated toolchain to install those extensions. PEAR is PHP Extension and Application Repository, it has libraries and code written IN php. Those … Read more