public
Description: Officially supported PHP driver for MongoDB
Homepage: http://www.mongodb.org/display/DOCS/PHP+Language+Center
Clone URL: git://github.com/mongodb/mongo-php-driver.git
name age message
file .gitignore Mon Sep 14 11:50:11 -0700 2009 added err funcs to DB obj [kristina]
file README.rdoc Thu Nov 19 10:46:12 -0800 2009 BUMP 1.0.1 [Kristina Chodorow]
file bson.c Mon Nov 30 14:31:38 -0800 2009 windows compile warnings MINOR [Kristina Chodorow]
file bson.h Thu Nov 19 08:57:26 -0800 2009 big endian BUG PHP-32 [Kristina Chodorow]
file collection.c Fri Dec 11 11:04:21 -0800 2009 connection, db, and collection getters [Kristina Chodorow]
file collection.h Fri Dec 11 11:04:21 -0800 2009 connection, db, and collection getters [Kristina Chodorow]
file config.m4 Tue Nov 17 12:48:23 -0800 2009 big endian support [Kristina Chodorow]
file config.w32 Mon Jun 29 06:44:09 -0700 2009 windows build MINOR [U-ACER-6E40E97492\Kristina Chodorow]
file cursor.c Tue Dec 08 13:48:31 -0800 2009 "special" cursor for opts [Kristina Chodorow]
file cursor.h Thu Dec 03 08:29:49 -0800 2009 added obj creation macro [Kristina Chodorow]
file db.c Fri Dec 11 11:04:21 -0800 2009 connection, db, and collection getters [Kristina Chodorow]
file db.h Fri Dec 11 11:04:21 -0800 2009 connection, db, and collection getters [Kristina Chodorow]
file gridfs.c Thu Dec 03 08:29:49 -0800 2009 added obj creation macro [Kristina Chodorow]
file gridfs.h Wed Jun 17 12:05:29 -0700 2009 added storeBytes() [kristina]
file mongo.c Fri Dec 11 11:04:21 -0800 2009 connection, db, and collection getters [Kristina Chodorow]
file mongo_types.c Thu Dec 10 08:54:34 -0800 2009 remove spl dependency PHP-60 [Kristina Chodorow]
file mongo_types.h Thu Dec 10 08:41:43 -0800 2009 MongoId::getTimestamp PHP-63 [Kristina Chodorow]
file package.xml Thu Nov 19 10:46:12 -0800 2009 BUMP 1.0.1 [Kristina Chodorow]
directory php/ Thu Jun 11 07:30:36 -0700 2009 gridfs classic and bin [kristina]
file php_mongo.h Fri Dec 11 11:04:21 -0800 2009 connection, db, and collection getters [Kristina Chodorow]
directory tests/ Fri Dec 11 11:04:21 -0800 2009 connection, db, and collection getters [Kristina Chodorow]
README.rdoc

Installation

To install:

   $ phpize
   $ ./configure
   $ make
   $ sudo make install

Then add

   extension=mongo.so

to your php.ini file.

See www.mongodb.org/display/DOCS/PHP+Language+Center for information on configuration options.

Documentation

See us.php.net/manual/en/book.mongo.php

Testing

To run the tests:

   $ phpunit tests/MongoSuite

You can get information about installing and setting up phpunit at www.phpunit.de/.

The tests will spit out a bunch of warnings if you do not have mongo-php-driver/php on your include path, but it will just skip the tests that require that.

The tests will also attempt to create an admin user using the shell. If "mongo" is not on your path, you will get some output complaining about it.

Credits

Jon Moss

  • Came up with the idea and implemented MongoCursor implementing Iterator

Pierre-Alain Joye

  • Helped build the Windows extension