Skip to content

Releases: mongodb/mongo-php-driver

0.6.0

05 May 05:19
Compare
Choose a tag to compare
0.6.0 Pre-release
Pre-release

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

24 Apr 22:17
Compare
Choose a tag to compare
Pre-release

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!

21 Apr 21:22
Compare
Choose a tag to compare
Pre-release

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

10 Apr 23:18
Compare
Choose a tag to compare
PHP 5.3-zts Build Fix Pre-release
Pre-release

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

10 Apr 21:35
Compare
Choose a tag to compare

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:

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

Missed Windows configs :)

26 Mar 03:14
Compare
Choose a tag to compare
Pre-release

Missed the mongoc and libbson configs in the package.xml file - so it wasn't part of the release archive - so the pecl Windows box cluster couldn't compile it, whoops!

Should work now :D

Documentations

Docs are online at the docs staging area: http://docs.php.net/set.mongodb

Full release notes

https://github.com/10gen-labs/mongo-php-driver-prototype/blob/master/RELEASE-0.3.1

Installing in *nix

$ pecl install mongodb-alpha
$ echo "extension=mongodb.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`

Windows is here! Docs Online!

25 Mar 23:15
Compare
Choose a tag to compare
Pre-release

The MongoDB driver for PHP now supports Windows!

The binaries should be available shortly on http://pecl.php.net/package/mongodb

Documentations

Docs are online at the docs staging area: http://docs.php.net/set.mongodb

Full release notes

https://github.com/10gen-labs/mongo-php-driver-prototype/blob/master/RELEASE-0.3.0

Installing in *nix

$ pecl install mongodb-alpha
$ echo "extension=mongodb.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`

Renamed to pecl/mongodb & starting alpha!

24 Mar 00:08
Compare
Choose a tag to compare

Woohooo!

After months of development, we are now ready to push forward and announce this driver on PECL!
Releasing the driver on PECL is an important milestone for us as we are gearing for final release in the next few weeks!

We would greatly appreciate any and all feedback you have to offer :D

Important changes since last release:

  • SDAM implemented
  • Result and WriteResult, along with WriteException now have getServer() method, returning the actual server it was executed on - where you can do follow up queries or writes.

Full release notes

https://github.com/10gen-labs/mongo-php-driver-prototype/blob/master/RELEASE-0.2.0

Installing

$ pecl install mongodb-alpha
$ echo "extension=mongodb.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`

Final API?

11 Mar 18:04
Compare
Choose a tag to compare
Final API? Pre-release
Pre-release

This release aims to make hopefully final modifications to the phongo API

  • Renamed bulk operations to "BulkWrite" (intentionally not mentioning the previous name to reduce confusion! :D)
  • SSL fixes for PHP5.6
  • Fixed ext/curl and OpenSSL race condition (leading to nothing but segfaults)
  • Exceptions are now always throw on failure (not fulfilling WriteConcern is a failure!)
  • BulkWrites always throw BulkWriteException on failure, wrapping the reason
  • Added ExecutionTimeoutException for maxTimeMS failures
  • Simplified the Query object, making it MongoDB 3.1 compatible
  • Consolidated Result classes into just Result (queries/commands) and WriteResult (writes)
  • HHVM cannot throw InvalidArgumentException on failure, so we are forced to return NULL instead.

Documentations and Getting Started Guides are coming shortly.
For super-early adopters; php --re phongo

Full release notes

https://github.com/10gen-labs/mongo-php-driver-prototype/blob/master/RELEASE-0.1.5

Installing

$ wget https://github.com/10gen-labs/mongo-php-driver-prototype/releases/download/0.1.5/phongo-0.1.5.tgz
$ pecl install phongo-0.1.5.tgz
$ echo "extension=phongo.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`

0.1.4: Namespaces & ODS

02 Feb 23:45
Compare
Choose a tag to compare
Pre-release

namespace changes

All classes have been moved into MongoDB\Driver\xxx namespace now.
The intentions with this extension is to be wrapped by external libraries to create abstraction layers and improved interface, the decision was to move the classes to MongoDB\Driver\ and leave the MongoDB\ for libraries to use.

The BSON classes are still in BSON\ though.

ODS (Object Document Serializer)

This release includes a new way to serialize (and unserialize!) objects. Classes that implement the BSON\Persistable interface will get their classname recorded during serialization - and upon unserializing the document back, it will be converted to the same object back.
See https://github.com/10gen-labs/mongo-php-driver-prototype/blob/master/tests/standalone/manager-executeInsert-002.phpt#L12

var_dump() debugging

Most/all classes now expose lots of internal gory details about themself to help debugging

MongoDB 3.0 support

phongo now supports MongoDB 3.0, thanks to mongoc-1.1 and libbson-1.1 bumps.

phongo does not actively test against MongoDB to 2.4 or earlier, but will likely work fine with 2.4 and 2.2.

Full release notes

https://github.com/10gen-labs/mongo-php-driver-prototype/blob/master/RELEASE-0.1.4