Sen descrición

Andreas Braun 0a7e52ba11 Add a list of known issues to the README %!s(int64=10) %!d(string=hai) anos
lib 385b1ab8c8 Correctly mark methods as not implemented %!s(int64=10) %!d(string=hai) anos
tests ea5d94dfb3 Fix return of listDBs method %!s(int64=10) %!d(string=hai) anos
.gitignore 85dc9c9ce4 Ignore dev scripts %!s(int64=10) %!d(string=hai) anos
.scrutinizer.yml 90673de964 Upload code coverage to scrutinizer %!s(int64=10) %!d(string=hai) anos
.travis.yml 90673de964 Upload code coverage to scrutinizer %!s(int64=10) %!d(string=hai) anos
LICENSE bc2142e977 Update license information %!s(int64=10) %!d(string=hai) anos
README.md 0a7e52ba11 Add a list of known issues to the README %!s(int64=10) %!d(string=hai) anos
composer.json ce1f48fc49 Only replace specific mongodb driver version %!s(int64=10) %!d(string=hai) anos
phpunit.xml.dist ab26669a10 Initial commit %!s(int64=10) %!d(string=hai) anos

README.md

Mongo PHP Adapter

The Mongo PHP Adapter is a userland library designed to act as an adapter between applications relying on ext-mongo and the new driver (ext-mongodb).

It provides the API of ext-mongo built on top of mongo-php-library, thus being compatible with PHP7.

Stability

This library is not yet stable enough to be used in production. Use at your own risk.

Installation

This library requires you to have the mongodb extension installed and conflicts with the legacy mongo extension.

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

$ composer require "alcaeus/mongo-php-adapter=dev-master"

Known issues

Mongo

  • The Mongo class is deprecated and was not implemented in this library. If you are still using it please update your code to use the new classes.

MongoClient

MongoDB

MongoCollection

  • The MongoCollection::createIndex method does not yet return the same result as the original method. Instead, it always returns the name of the index created.

Types

  • Return values containing objects of the MongoDB\BSON\Javascript class cannot be converted to full MongoCode objects because there are no accessors for the code and scope properties.