How to Install PHP MongoDB Driver for XAMPP on OSX?
You need to start mongod
brew update
brew install mongodb
mkdir -p /data/db
mongod --dbpath /data/db
Before running mongod
for the first time, ensure that the user account running mongod has read
and write
permissions for the /data/db
directory.
Install MongoDB PHP driver
brew install php56-mongo
OR
sudo pecl install mongo