In this section, we will cover the steps to install the MongoDB PHP extension on Windows and Linux/Mac. It is highly recommended for both Linux and macOS users to use PECL (http://pecl.php.net/) to install ext/mongodb. PECL stands for PHP Extension Community Library. It is a repository which contains PHP extensions that are written in C language, which must be compiled and enabled in the php.ini file. For a Windows installation, on the other hand, all you need to do is to install the appropriate *.dll file, and enable the extension in the php.ini file.
Installing the MongoDB PHP extension
ext/mongodb installation using PECL
The pecl command is used for low level PHP engine packaging and distribution. This system is shared...