mongo-php-adapter

Adapter to provide ext-mongo interface on top of mongo-php-library

MIT License

Downloads
10.3M
Stars
465
Committers
29

Bot releases are hidden (Show)

mongo-php-adapter - 1.0.11

Published by alcaeus over 7 years ago

I'm happy to announce that version 1.0.11 of mongo-php-adapter is now available.

Release highlights

This release fixes an issue with MongoCursor objects passing a batchSize of 0 by default, causing errors in sharded setups.

All issues and pull requests under this release may be found under the 1.0.11 milestone.

Feedback

Please use the issue tracker to report any issues that you may encounter.

Installation

The preferred method of installing this library is with Composer by running the following from your project root:

$ composer require "alcaeus/mongo-php-adapter=^1.0.0"

If your project already has a dependency on ext-mongo, the command above may
not work. This is due to a bug in composer, see composer/composer#5030.

To fix this, you can use the --ignore-platform-reqs switch when running the
above command, or when running composer update with no composer.lock file
present.

mongo-php-adapter - 1.0.10

Published by alcaeus over 7 years ago

I'm happy to announce that version 1.0.10 of mongo-php-adapter is now available.

Release highlights

This release fixes an issue when dealing with microseconds with leading zeroes in MongoDate objects.

All issues and pull requests under this release may be found under the 1.0.10 milestone.

Feedback

Please use the issue tracker to report any issues that you may encounter.

Installation

The preferred method of installing this library is with Composer by running the following from your project root:

$ composer require "alcaeus/mongo-php-adapter=^1.0.0"

If your project already has a dependency on ext-mongo, the command above may
not work. This is due to a bug in composer, see composer/composer#5030.

To fix this, you can use the --ignore-platform-reqs switch when running the
above command, or when running composer update with no composer.lock file
present.

mongo-php-adapter - 1.0.9

Published by alcaeus over 7 years ago

I'm happy to announce that version 1.0.9 of mongo-php-adapter is now available.

Release highlights

This release fixes a regression introduced with 1.0.8 relating to query projections with numeric field names. It also fixes type conversion when using BSON types in queries and makes the options parameter in MongoDB::createCollection optional to make the method signature consistent with the legacy driver.

All issues and pull requests under this release may be found under the 1.0.9 milestone.

Feedback

Please use the issue tracker to report any issues that you may encounter.

Installation

The preferred method of installing this library is with Composer by running the following from your project root:

$ composer require "alcaeus/mongo-php-adapter=^1.0.0"

If your project already has a dependency on ext-mongo, the command above may
not work. This is due to a bug in composer, see composer/composer#5030.

To fix this, you can use the --ignore-platform-reqs switch when running the
above command, or when running composer update with no composer.lock file
present.

mongo-php-adapter - 1.0.8

Published by alcaeus almost 8 years ago

I'm happy to announce that version 1.0.8 of mongo-php-adapter is now available.

Release highlights

This release fixes a few inconsistencies with the legacy driver regarding query projections and write concern. It also fixes a bug when getting a document from a DBRef object and exposes all index options when calling `MongoCollection::getIndexInfo``.

All issues and pull requests under this release may be found under the 1.0.8 milestone.

Feedback

Please use the issue tracker to report any issues that you may encounter.

Installation

The preferred method of installing this library is with Composer by running the following from your project root:

$ composer require "alcaeus/mongo-php-adapter=^1.0.0"

If your project already has a dependency on ext-mongo, the command above may
not work. This is due to a bug in composer, see composer/composer#5030.

To fix this, you can use the --ignore-platform-reqs switch when running the
above command, or when running composer update with no composer.lock file
present.

mongo-php-adapter - 1.0.7

Published by alcaeus almost 8 years ago

I'm happy to announce that version 1.0.7 of mongo-php-adapter is now available.

Release highlights

This release fixes the error codes used in calls to trigger_error. PHP does not allow using E_ERROR and E_WARNING in trigger_error, so this minor break compared to ext-mongo is unavoidable.

All issues and pull requests under this release may be found under the 1.0.7 milestone.

Feedback

Please use the issue tracker to report any issues that you may encounter.

Installation

The preferred method of installing this library is with Composer by running the following from your project root:

$ composer require "alcaeus/mongo-php-adapter=^1.0.0"

If your project already has a dependency on ext-mongo, the command above may
not work. This is due to a bug in composer, see composer/composer#5030.

To fix this, you can use the --ignore-platform-reqs switch when running the
above command, or when running composer update with no composer.lock file
present.

mongo-php-adapter - 1.0.6

Published by alcaeus about 8 years ago

I'm happy to announce that version 1.0.6 of mongo-php-adapter is now available.

Release highlights

This release fixes a wrongly capitalized class in MongoId and adds proper JSON serialization to the same class via the JsonSerializable interface.

All issues and pull requests under this release may be found under the 1.0.6 milestone.

Feedback

Please use the issue tracker to report any issues that you may encounter.

Installation

The preferred method of installing this library is with Composer by running the following from your project root:

$ composer require "alcaeus/mongo-php-adapter=^1.0.0"

This package declares that it provides ext-mongo; Composer only allows this replacement to apply if composer.json or a dependency contain a requirement, see composer/composer#2690.

Therefore, you either need to have a dependency on a package which requires ext-mongo, such as doctrine/mongodb, in your project:

"require": {
    "php": "^7.0",
    "alcaeus/mongo-php-adapter": "^1.0.0",
    "doctrine/mongodb": "dev-master"
}

or you need to explicitly require ext-mongo yourself in composer.json:

"require": {
    "php": "^7.0",
    "alcaeus/mongo-php-adapter": "^1.0.0",
    "ext-mongo": "*"
}
mongo-php-adapter - 1.0.5

Published by alcaeus over 8 years ago

I'm happy to announce that version 1.0.5 of mongo-php-adapter is now available.

Release highlights

This release fixes an error when passing both the update parameter and option to MongoCollection::findAndModify and improves the exception handling for bulk write operations. Last but not least, calling MongoCollection::getIndexInfo will now correctly report indexes with the unique option set.

All issues and pull requests under this release may be found under the 1.0.5 milestone.

Feedback

Please use the issue tracker to report any issues that you may encounter.

Installation

The preferred method of installing this library is with Composer by running the following from your project root:

$ composer require "alcaeus/mongo-php-adapter=^1.0.0"

This package declares that it provides ext-mongo; Composer only allows this replacement to apply if composer.json or a dependency contain a requirement, see composer/composer#2690.

Therefore, you either need to have a dependency on a package which requires ext-mongo, such as doctrine/mongodb, in your project:

"require": {
    "php": "^7.0",
    "alcaeus/mongo-php-adapter": "^1.0.0",
    "doctrine/mongodb": "dev-master"
}

or you need to explicitly require ext-mongo yourself in composer.json:

"require": {
    "php": "^7.0",
    "alcaeus/mongo-php-adapter": "^1.0.0",
    "ext-mongo": "*"
}
mongo-php-adapter - 1.0.4

Published by alcaeus over 8 years ago

I'm happy to announce that version 1.0.4 of mongo-php-adapter is now available.

Release highlights

This release fixes passing read preference and write concern options in the constructor for MongoClient. There is also a small bugfix with MongoCollection::aggregate, fixing behavior when passing aggregation stages as individual arguments.

All issues and pull requests under this release may be found under the 1.0.4 milestone.

Feedback

Please use the issue tracker to report any issues that you may encounter.

Installation

The preferred method of installing this library is with Composer by running the following from your project root:

$ composer require "alcaeus/mongo-php-adapter=^1.0.0"

This package declares that it provides ext-mongo; Composer only allows this replacement to apply if composer.json or a dependency contain a requirement, see composer/composer#2690.

Therefore, you either need to have a dependency on a package which requires ext-mongo, such as doctrine/mongodb, in your project:

"require": {
    "php": "^7.0",
    "alcaeus/mongo-php-adapter": "^1.0.0",
    "doctrine/mongodb": "dev-master"
}

or you need to explicitly require ext-mongo yourself in composer.json:

"require": {
    "php": "^7.0",
    "alcaeus/mongo-php-adapter": "^1.0.0",
    "ext-mongo": "*"
}
mongo-php-adapter - 1.0.3

Published by alcaeus over 8 years ago

I'm happy to announce that version 1.0.3 of mongo-php-adapter is now available.

Release highlights

This release fixes a bug in MongoCursor::count that would cause an error when counting a cursor that has been iterated as well as an issue when using BSON types in a projection for MongoCollection::findOne or MongoCollection::find.

All issues and pull requests under this release may be found under the 1.0.3 milestone.

Feedback

Please use the issue tracker to report any issues that you may encounter.

Installation

The preferred method of installing this library is with Composer by running the following from your project root:

$ composer require "alcaeus/mongo-php-adapter=^1.0.0"

This package declares that it provides ext-mongo; Composer only allows this replacement to apply if composer.json or a dependency contain a requirement, see composer/composer#2690.

Therefore, you either need to have a dependency on a package which requires ext-mongo, such as doctrine/mongodb, in your project:

"require": {
    "php": "^7.0",
    "alcaeus/mongo-php-adapter": "^1.0.0",
    "doctrine/mongodb": "dev-master"
}

or you need to explicitly require ext-mongo yourself in composer.json:

"require": {
    "php": "^7.0",
    "alcaeus/mongo-php-adapter": "^1.0.0",
    "ext-mongo": "*"
}
mongo-php-adapter - 1.0.2

Published by alcaeus over 8 years ago

I'm happy to announce that version 1.0.2 of mongo-php-adapter is now available.

Release highlights

This release fixes a bug in MongoCollection::hasNext method that could lead to wrong data being returned as well as a bug when passing database objects to the MongoClient::selectCollection method.

All issues and pull requests under this release may be found under the 1.0.2 milestone.

Feedback

Please use the issue tracker to report any issues that you may encounter.

Installation

The preferred method of installing this library is with Composer by running the following from your project root:

$ composer require "alcaeus/mongo-php-adapter=^1.0.0"

This package declares that it provides ext-mongo; Composer only allows this replacement to apply if composer.json or a dependency contain a requirement, see composer/composer#2690.

Therefore, you either need to have a dependency on a package which requires ext-mongo, such as doctrine/mongodb, in your project:

"require": {
    "php": "^7.0",
    "alcaeus/mongo-php-adapter": "^1.0.0",
    "doctrine/mongodb": "dev-master"
}

or you need to explicitly require ext-mongo yourself in composer.json:

"require": {
    "php": "^7.0",
    "alcaeus/mongo-php-adapter": "^1.0.0",
    "ext-mongo": "*"
}
mongo-php-adapter - 1.0.1

Published by alcaeus over 8 years ago

I'm happy to announce that version 1.0.1 of mongo-php-adapter is now available.

Release highlights

This release adds the legacy parameters limit and skip to the MongoCollection::count methods and fixes a bug related to BSON type conversion in MongoCollection::distinct.

All issues and pull requests under this release may be found under the 1.0.1 milestone.

Feedback

Please use the issue tracker to report any issues that you may encounter.

Installation

The preferred method of installing this library is with Composer by running the following from your project root:

$ composer require "alcaeus/mongo-php-adapter=^1.0.0"

This package declares that it provides ext-mongo; Composer only allows this replacement to apply if composer.json or a dependency contain a requirement, see composer/composer#2690.

Therefore, you either need to have a dependency on a package which requires ext-mongo, such as doctrine/mongodb, in your project:

"require": {
    "php": "^7.0",
    "alcaeus/mongo-php-adapter": "^1.0.0",
    "doctrine/mongodb": "dev-master"
}

or you need to explicitly require ext-mongo yourself in composer.json:

"require": {
    "php": "^7.0",
    "alcaeus/mongo-php-adapter": "^1.0.0",
    "ext-mongo": "*"
}
mongo-php-adapter - 1.0.0

Published by alcaeus over 8 years ago

I'm happy to announce the availability of the first stable release of mongo-php-adapter!

Release highlights

This release adds support for MongoCursor::hasNext and fixes bugs with aggregation, findAndModify operations and the Timestamp BSON type.

All issues and pull requests under this release may be found under the 1.0.0 milestone.

Feedback

Please use the issue tracker to report any issues that you may encounter.

Installation

The preferred method of installing this library is with Composer by running the following from your project root:

$ composer require "alcaeus/mongo-php-adapter=^1.0.0"

This package declares that it provides ext-mongo; Composer only allows this replacement to apply if composer.json or a dependency contain a requirement, see composer/composer#2690.

Therefore, you either need to have a dependency on a package which requires ext-mongo, such as doctrine/mongodb, in your project:

"require": {
    "php": "^7.0",
    "alcaeus/mongo-php-adapter": "^1.0.0",
    "doctrine/mongodb": "dev-master"
}

or you need to explicitly require ext-mongo yourself in composer.json:

"require": {
    "php": "^7.0",
    "alcaeus/mongo-php-adapter": "^1.0.0",
    "ext-mongo": "*"
}
Thanks

Thanks to all contributors to this release:

mongo-php-adapter - Beta 1

Published by alcaeus over 8 years ago

I'm happy to announce the availability of the first beta release of mongo-php-adapter!

Release highlights

This release fixes index handling and several differences from the legacy driver.

All issues and pull requests under this release may be found under the
1.0.0-BETA1
milestone.

Feedback

Please use the issue tracker to report any issues that you may encounter.

Installation

It is recommended to install this package at the root level of your project, not within a library. First, add the following directive to the require section in your composer.json:

"alcaeus/mongo-php-adapter": "^1.0.0@beta"

Due to a limitation in the handling of extensions in composer you must specify the following provide directive in composer.json for your root project:

"provide": {
    "ext-mongo": "1.6.12"
}
mongo-php-adapter - Initial release

Published by alcaeus over 8 years ago