CARVIEW |
mongodb / mongo-php-driver
- Source
- Commits
- Network (4)
- Downloads (25)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
Pledgie Donations
Once activated, we'll place the following badge in your repository's detail box:
Officially supported PHP driver for MongoDB — Read more

name | age | message | |
---|---|---|---|
![]() |
.gitignore | Mon Sep 14 11:50:11 -0700 2009 | added err funcs to DB obj [kristina] |
![]() |
README.rdoc | Fri Dec 18 11:31:48 -0800 2009 | specify where tests can be found MINOR [Kristina Chodorow] |
![]() |
bson.c | Thu Jan 07 07:47:32 -0800 2010 | 300% speedup in array serialization [Kristina Chodorow] |
![]() |
bson.h | Thu Dec 17 07:44:15 -0800 2009 | Revert "fix the way numeric keys are returned" ... [Kristina Chodorow] |
![]() |
collection.c | Sat Jan 23 08:02:15 -0800 2010 | group condition param is not required [Kristina Chodorow] |
![]() |
collection.h | Fri Dec 11 11:04:21 -0800 2009 | connection, db, and collection getters [Kristina Chodorow] |
![]() |
config.m4 | Mon Dec 14 08:20:11 -0800 2009 | 5.3 API changed arginfo macro [Kristina Chodorow] |
![]() |
config.w32 | Thu Dec 17 07:51:49 -0800 2009 | fix tests for revert MINOR [Kristina Chodorow] |
![]() |
cursor.c | Thu Jan 21 16:20:25 -0800 2010 | don't throw an exception if this is a tailing c... [Kristina Chodorow] |
![]() |
cursor.h | Thu Jan 07 07:55:22 -0800 2010 | cursor timeout PHP-62 [Kristina Chodorow] |
![]() |
db.c | Wed Dec 16 14:45:37 -0800 2009 | no spl dependency [Kristina Chodorow] |
![]() |
db.h | Fri Dec 11 11:04:21 -0800 2009 | connection, db, and collection getters [Kristina Chodorow] |
![]() |
gridfs.c | Thu Dec 17 15:36:43 -0800 2009 | fix gridfs property access [Kristina Chodorow] |
![]() |
gridfs.h | Wed Jun 17 12:05:29 -0700 2009 | added storeBytes() [kristina] |
![]() |
mongo.c | Fri Jan 29 13:30:44 -0800 2010 | allow ' ' after commas in link str PHP-75 [Kristina Chodorow] |
![]() |
mongo_types.c | Wed Jan 20 15:27:25 -0800 2010 | dbref test debugging MINOR [Kristina Chodorow] |
![]() |
mongo_types.h | Thu Dec 10 08:41:43 -0800 2009 | MongoId::getTimestamp PHP-63 [Kristina Chodorow] |
![]() |
package.xml | Fri Jan 29 13:30:58 -0800 2010 | add windows build file to package MINOR [Kristina Chodorow] |
![]() |
php/ | Thu Jun 11 07:30:36 -0700 2009 | gridfs classic and bin [kristina] |
![]() |
php_mongo.h | Wed Jan 20 09:19:12 -0800 2010 | kill cursors before the connection is freed PHP-71 [Kristina Chodorow] |
![]() |
tests/ | Fri Jan 29 13:30:44 -0800 2010 | allow ' ' after commas in link str PHP-75 [Kristina Chodorow] |
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
The tests are not available as part of the PECL package, but they are available on Github (www.github.com/mongodb/mongo-php-driver/tree/master/tests). They use PHPUnit, which can be downloaded from www.phpunit.de. To run the tests:
$ phpunit tests/MongoSuite
There must be a mongod instance running on port 27017 in order to run the tests.
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 and has provided the VC6 builds