MongoDB is a document oriented NoSQL database. MongoDB supports journaling, datacentre-aware replication and auto-sharding to guarantee high availability. The database manages collections of BSON (a superset of JSON) documents. The major distinction between NoSQL and SQl is that NoSQL allows you to have fields which are multi-valued. The multiple values are represented as a JSON array.
MongoDB is a document oriented NoSQL database. MongoDB supports journaling, replication sets and auto-sharding to guarantee high availability. The database manages collections of BSON (a superset of JSON) documents.
The PHP driver for MongoDB is actively developed and maintained on Github. The PHP Language Center in the MongoDB documentation holds basic information about the driver.
Installation
The MongoDB PHP driver should work on nearly any system: Windows, Mac OS X, Unix, and Linux; little- and big-endian machines; 32- and 64-bit machines; PHP 5.2, 5.3, 5.4 and 5.5.
*nix
Run:
sudo pecl install mongo
Open your php.ini file and add to it:
extension=mongo.so
Windows
Download the extension from the list in the PHP manual and put it into the extension directory of your PHP install.
Add:
extension=php_mongo.dll
to your php.ini.
Useful Links
- PHP driver documentation
- GitHub account
- Installation steps
- PHP Language Center on MongoDB.com
- PHP Libraries, Frameworks, and Tools on MongoDB.com