Install Mongodb PHP driver on Mac OS X
Before install the php driver , you must have brew or portin your mac os x. I am using brew in this example. If you are using port, just change brew to port.
Download the source
After finishing the installation , you need to edit php.ini
search extension=php_zip.dll in php.ini
add extension = mongo.so in under the line of extension= php_zip.dll
So, it will be like that
Save the file with
:wq
Restart the apache server
Done. You can check mongodb in phpinfo(); and you should see like following
