Releases: mongodb/mongo-php-driver
1.0.0beta1
The PHP team is happy to announce that version 1.0.0-beta1 of our new "mongodb" PHP extension is now available on PECL.
Release Highlights
The behavior of Manager::getServers()
has been changed to only return servers in known states (e.g. it returns nothing before initial discovery of a replica set). Additionally, Server::executeQuery()
and Server::executeCommand()
now take an optional ReadPreference argument.
This release also bumps our libmongoc dependency to 1.2.0-beta1.
A complete list of resolved issues in these releases may be found at:
https://github.com/mongodb-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-beta
or update with:
pecl upgrade mongodb-beta
Windows binaries are available on PECL:
http://pecl.php.net/package/mongodb
1.0.0alpha2
The 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.
0.6.3 release -- for real this time
OK OK OK OK!
That awful copy&paste typo has been fixed. The driver can now be successfully built from a pecl packaged archive.
4 releases in 2 days tralalalala 👯
0.6.2
This release includes no functional changes over 0.6.1, but it corrects the PECL package stability ("alpha" instead of "devel").
Documentation
Documentation is available on PHP.net:
http://php.net/set.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.6.2
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
0.6.1
This release includes no functional changes over 0.6.0, but it fixes an issue with the PECL package's build process.
Documentation
Documentation is available on PHP.net:
http://php.net/set.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.6.1
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
0.6.0
We've moved all of the exception classes out of the primary MongoDB\Driver\
namespace and over to MongoDB\Driver\Exception\
. This should make the documentation more readable and improves organization of the project's code.
This release also contains several bug fixes for issues discovered while implementing the upcoming user-land library.
Release Highlights
New features and changes:
- PHPC-272: Exceptions moved to MongoDB\Driver\Exception
- PHPC-284: MongoDB\Driver\Exception\LogicException created
Fixes:
- PHPC-274: BSON\Seriaizable ignored for top-level documents
- PHPC-275: BSON\Serializable::unserialize() should throw exception on invalid return argument
- PHPC-282: Cursor should only allow one iteration
Documentation
Documentation is available on PHP.net:
http://php.net/set.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.6.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
0.5.1 -- PHPLIB Coming together
Things are taking great shape - with the power of the ODS demonstrated in MongoDB Transistor, we are now preparing to release the accompanying fully featured user-land library in the next few days -- which requires a couple of bug fixes 💃
Release Highlights
New features and changes:
- PHPC-241: mongodb.debug_log php.ini renamed to mongodb.debug
- PHPC-259: add --with-libbson option
- PHPC-260: Allow/use "object" in setTypeMap() as alias/preferred for "stdclass"
- PHPC-266: Add MongoDB\Driver\UnexpectedValueException
Fixes:
- PHPC-247: Use the bundled pregenerated fixtures, rather then run-time dependency on composer
- PHPC-258: make all files needed for tests as role="test"
- PHPC-265: BSON encoding unsupoprted types (Resource) should fail
- PHPC-267; _id generated on embedded document
- PHPC-269: Fix travis setup
Documentation
Documentation is available on PHP.net:
http://php.net/set.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.1
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
Community Contributors
Thanks to:
- Remi Collet
0.5.0 -- and Next Generation ODM!
The 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
PHP 5.3-zts Build Fix
Dear Travis.
Thank you for running Thread Safe PHP5.3.
Attached is a build fix for you.
-Team PHP
Next-generation MongoDB PHP Driver 0.4.0-alpha released
The PHP team is happy to announce that version 0.4.0-alpha of our new "mongodb" PHP extension is now available on PECL.
Release Highlights
New features and changes:
- PHPC-194: Add MongoDB\Driver\Manager->selectServer()
- PHPC-208: Use fixed fieldname for the Object Document Serializer ("__pclass")
- PHPC-223: Use explicit driverOptions rather then Stream Context Options
- PHPC-224: Consolidate Result and Cursor into a single, Traversable Cursor class
Fixes:
- PHPC-216 and PHPC-130: PHP 5.3 and 5.4 support
- PHPC-212: Fix RTLD_NOW build
- PHPC-213: FreeBSD support
- PHPC-231: MongoDB\Driver\Manager free()s streams still in use
Documentation
Documentation is available on PHP.net:
http://php.net/set.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.4.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
Community Contributors
Thanks to:
- Remi Collet