0.5.0 -- and Next Generation ODM!
Pre-releaseThe PHP team is happy to announce that version 0.5.0-alpha of our new "mongodb" PHP extension is now available on PECL.
Release Highlights
New features and changes:
- PHPC-240: Iterating over Command Cursors
- PHPC-248: Allow ->setTypeMap() to set 'array' and 'stdclass'
- PHPC-249: Empty array should be serialized as array
Fixes:
- PHPC-239: Cursor refcount failure
- PHPC-243: The update command option is supposed to be called 'multi'
- PHPC-253: Skipping/default value for "*ms" URI parameters inconsistent
New Object Document Mapper
We've started playing around with the new BSON\Persistable interface and have created a super lightweight trait that can act as a ODM, check it out at: https://github.com/bjori/mongo-php-transistor
Documentation
Documentation is available on PHP.net:
http://php.net/mongodb
Additional documentation may be found on GitHub:
http://10gen-labs.github.io/mongo-php-driver-prototype/ods/
Feedback
As the "mongodb" extension is under heavy development, we would appreciate any feedback you might have on the project:
https://jira.mongodb.org/secure/CreateIssue.jspa?pid=12484&issuetype=6
Full Release Notes
https://github.com/10gen-labs/mongo-php-driver-prototype/blob/master/RELEASE-0.5.0
Installing on *nix
$ pecl install mongodb-alpha
$ echo "extension=mongodb.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
Installing on Windows
Windows binaries are available on PECL:
http://pecl.php.net/package/mongodb