alcaeus/mongo-php-adapter
Compatibility layer that lets legacy PHP MongoDB drivers (ext-mongo) work with the newer mongodb extension and library. Helps modernize apps with minimal code changes by translating old APIs to the current MongoDB PHP driver.
Full Changelog: https://github.com/alcaeus/mongo-php-adapter/compare/1.2.4...1.2.5
This release fixes a call to a no longer defined method after updating to version 1.16 of the MongoDB driver.
Full Changelog: https://github.com/alcaeus/mongo-php-adapter/compare/1.2.3...1.2.4
This release adds instrumentation when creating a client.
This release provides basic support for PHP 8.1.
PHP 8 compatibility release: this release adds support for PHP 8. It also fixes a bug when converting MongoCode objects with an empty scope, which can lead to failures when running mapreduce commands on newer MongoDB server versions.
This release fixes handling of ArrayObject instances in MongoCollection::insert.
This release fixes type conversion for write concern passed to MongoClient via URL arguments.
I'm happy to announce that version 1.1.5 of mongo-php-adapter is now available.
This release fixes the handling of mongodb+srv connection URLs in MongoClient.
All issues and pull requests under this release may be found under the 1.1.5 milestone.
Please use the issue tracker to report any issues that you may encounter.
The preferred method of installing this library is with Composer by running the following from your project root:
$ composer config "platform.ext-mongo" "1.6.16" && composer require "alcaeus/mongo-php-adapter=^1.1.5"
The composer config call is to ensure the requirement to ext-mongo can be resolved correctly. This is due to a bug in composer, see composer/composer#5030. It is not recommended to use --ignore-platform-reqs to work around this issue.
I'm happy to announce that version 1.1.4 of mongo-php-adapter is now available.
This release fixes an issue where the return values of unacknowledged batch actions were incorrect.
All issues and pull requests under this release may be found under the 1.1.4 milestone.
Please use the issue tracker to report any issues that you may encounter.
The preferred method of installing this library is with Composer by running the following from your project root:
$ composer config "platform.ext-mongo" "1.6.16" && composer require "alcaeus/mongo-php-adapter=^1.1.4"
The composer config call is to ensure the requirement to ext-mongo can be resolved correctly. This is due to a bug in composer, see composer/composer#5030. It is not recommended to use --ignore-platform-reqs to work around this issue.
I'm happy to announce that version 1.1.3 of mongo-php-adapter is now available.
This release ensures compatibility with version 1.3 of ext-mongodb and fixes a few incompatibilities to the legacy driver.
All issues and pull requests under this release may be found under the 1.1.3 milestone.
Please use the issue tracker to report any issues that you may encounter.
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.1.3"
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.
I'm happy to announce that version 1.1.2 of mongo-php-adapter is now available.
This release fixes an issue with an invalid call to count causing warnings in PHP 7.2.
All issues and pull requests under this release may be found under the 1.1.2 milestone.
Please use the issue tracker to report any issues that you may encounter.
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.1.2"
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.
I'm happy to announce that version 1.1.1 of mongo-php-adapter is now available.
This release fixes a single issue relating to exception codes in MongoGridFSException exceptions occurring during GridFS operations.
All issues and pull requests under this release may be found under the 1.1.1 milestone.
Please use the issue tracker to report any issues that you may encounter.
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.1.1"
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.
I'm happy to announce that version 1.1.1 of mongo-php-adapter is now available.
This release removes support for PHP 5.5 and implements the MongoCursor::explain method. It also allows reading the code and scope properties in MongoCode objects.
All issues and pull requests under this release may be found under the 1.1.0 milestone.
Please use the issue tracker to report any issues that you may encounter.
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.1.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.
I'm happy to announce that version 1.0.11 of mongo-php-adapter is now available.
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.
Please use the issue tracker to report any issues that you may encounter.
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.
I'm happy to announce that version 1.0.10 of mongo-php-adapter is now available.
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.
Please use the issue tracker to report any issues that you may encounter.
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.
I'm happy to announce that version 1.0.9 of mongo-php-adapter is now available.
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.
Please use the issue tracker to report any issues that you may encounter.
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.
I'm happy to announce that version 1.0.8 of mongo-php-adapter is now available.
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.
Please use the issue tracker to report any issues that you may encounter.
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.
I'm happy to announce that version 1.0.7 of mongo-php-adapter is now available.
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.
Please use the issue tracker to report any issues that you may encounter.
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.
I'm happy to announce that version 1.0.6 of mongo-php-adapter is now available.
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.
Please use the issue tracker to report any issues that you may encounter.
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": "*"
}
I'm happy to announce that version 1.0.5 of mongo-php-adapter is now available.
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.
Please use the issue tracker to report any issues that you may encounter.
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": "*"
}
I'm happy to announce that version 1.0.4 of mongo-php-adapter is now available.
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.
Please use the issue tracker to report any issues that you may encounter.
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": "*"
}
I'm happy to announce that version 1.0.3 of mongo-php-adapter is now available.
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.
Please use the issue tracker to report any issues that you may encounter.
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": "*"
}
I'm happy to announce that version 1.0.2 of mongo-php-adapter is now available.
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.
Please use the issue tracker to report any issues that you may encounter.
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": "*"
}
How can I help you explore Laravel packages today?