1.0.0alpha2
Pre-releaseThe PHP team is happy to announce that version 1.0.0-alpha2 of our new "mongodb" PHP extension is now available on PECL.
This release addresses a Windows build error and is otherwise functionally identical to 1.0.0-alpha1.
Release Highlights
This release includes many fixes and improvements to our BSON and Object Document Serialization (ODS) functionality. Most importantly, BSON documents are now deserialized as stdClass instances by default. Custom classes and basic PHP arrays, for users preferring the legacy driver's behavior, may also be used. We hope to have more comprehensive documentation on this subject available on PHP.net soon, but examples of this functionality can be found in the extension's test suite in the meantime.
The namespace for all BSON functions and classes has been renamed from "BSON" to "MongoDB\BSON", which means all code within the extension now falls under a top-level "MongoDB" namespace. Additionally, we have renamed to toArray() and fromArray() functions to toPHP() and fromPHP(), respectively.
Some notable performance improvements in this release include coalescing bulk update/delete operations for less round trips and buffering small writes for more efficient network IO.
We have also bumped the minimum supported PHP version to 5.4 (from 5.3 in our earlier releases).
A complete list of resolved issues in these releases may be found at:
https://github.com/10gen-labs/mongo-php-driver-prototype/blob/master/RELEASE-1.0
Documentation
Documentation is available on PHP.net:
http://php.net/set.mongodb
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
Installation
You can either download and install the source manually, or you can install the extension with:
pecl install mongodb-alpha
or update with:
pecl upgrade mongodb-alpha
Windows binaries are available on PECL:
http://pecl.php.net/package/mongodb
Community Contributors
Once again, we'd like to extend special thanks to Remi Collet for his contribution to this release.