Installing the PHP Driver
*NIX
Run:
See Installing the PHP Driver for configuration information and OS-specific installation instructions.
Windows
Download one of the binaries and place it on your extension path. For more information, see the Windows section of the installation docs.
Using the PHP Driver
To get started, see the Tutorial. Also check out the API Documentation.
GUIs
Opricot
Opricot is a hybrid GUI/CLI/Scripting web frontend implemented in PHP to manage your MongoDB servers and databases. Use as a point-and-click adventure for basic tasks, utilize scripting for automated processing or repetitive things.
Opricot combines the following components to create a fully featured administration tool:
- An interactive console that allows you to either work with the database through the UI, or by using custom Javascript.
- A set of simple commands that wrap the Javascript driver, and provide an easy way to complete the most common tasks.
- Javascript driver for Mongo that works on the browser and talks with the AJAX interface.
- Simple server-side AJAX interface for communicating with the MongoDB server (currently available for PHP).

PHPMoAdmin
PHPMoAdmin is a MongoDB administration tool for PHP built on a stripped-down version of the Vork high-performance framework.
- Nothing to configure - place the moadmin.php file anywhere on your web site and it just works!
- Fast AJAX-based XHTML 1.1 interface operates consistently in every browser!
- Self-contained in a single 75kb file!
- Works on any version of PHP5 with the MongoDB NoSQL database installed & running.
- Option to enable password-protection for one or more users; to activate protection, just add the username-password(s) to the array at the top of the file.
- E_STRICT PHP code is formatted to the Zend Framework coding standards + fully-documented in the phpDocumentor DocBlock standard.
- All textareas can be resized by dragging/stretching the lower-right corner.
- Free & open-source! Release under the GPLv3 FOSS license!

Library and Framework Tools
CakePHP
Drupal
- MongoDB Integration - Views (query builder) backend, a watchdog implementation (logging), and field storage.
Kohana Framework
Lithium
Lithium supports Mongo out-of-the-box.
Memcached
- MongoNode
PHP script that replicates MongoDB objects to Memcached.
Symfony 2
- sfStoragePerformancePlugin - This plugin contains some extra storage engines (MongoDB and Memcached) that are currently missing from the Symfony (>= 1.2) core.
Vork
- Vork, the high-performance enterprise framework for PHP natively supports MongoDB as either a primary datasource or used in conjunction with an RDBMS.
Zend Framework
- ZF Cache Backend
A ZF Cache Backend for MongoDB. It support tags and auto-cleaning.
Stand-Alone Tools
MapReduce API
A MapReduce abstraction layer. See the blog post.
Mongodloid
A nice library on top of the PHP driver that allows you to make more natural queries ($query->query('a == 13 AND b >= 8 && c % 3 == 4');), abstracts away annoying $-syntax, and provides getters and setters.
Morph
A high level PHP library for MongoDB. Morph comprises a suite of objects and object primitives that are designed to make working with MongoDB in PHP a breeze.
simplemongophp
Very simple layer for using data objects see blog post
Comments (3)
IF YOU HAVE A QUESTION, POST IT TO THE USER GROUP.
These pages are fine for comments, but for questions, your best bet will always be the MongoDB User Group.Jan 04
Anonymous says:
Tutorial using MongoDB in Lithium, the php 5.3+ rad framework http://rad-de...Tutorial using MongoDB in Lithium, the php 5.3+ rad framework
http://rad-dev.org/lithium/wiki/drafts/blog-tutorial
Jan 06
Anonymous says:
Where the heck did php tutorial pages go?Where the heck did php tutorial pages go?
Jan 06
Kristina Chodorow says:
The tutorial was moved to the PHP manual, which is linked to above.The tutorial was moved to the PHP manual, which is linked to above.
Add Comment