Установка
PHP Manual

Installing the MongoDB PHP Driver on OSX with Homebrew

If you are using » Homebrew, the PHP tap includes formulae for installing the driver on various PHP versions.

For example, you might install the driver for PHP 7.0 using the following command:

$ brew install php70-mongodb


Установка
PHP Manual