|
|
10 роки тому | |
|---|---|---|
| lib | 10 роки тому | |
| tests | 10 роки тому | |
| .gitignore | 10 роки тому | |
| .scrutinizer.yml | 10 роки тому | |
| .travis.yml | 10 роки тому | |
| LICENSE | 10 роки тому | |
| README.md | 10 роки тому | |
| composer.json | 10 роки тому | |
| phpunit.xml.dist | 10 роки тому |
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.
This library aims to provide a compatibility layer for applications that rely on on libraries using ext-mongo (e.g. Doctrine ODM) but want to migrate to PHP 7 or HHVM on which ext-mongo will not run.
You should not be using this library if you do not rely on a library using ext-mongo. If you are starting a new project, please check out mongodb/mongodb.
This library is still in development and not stable enough to be used in production. In addition to the known issues outlined below, other issues or fatal errors may occur. Please use at your own risk.
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" "mongodb/mongodb=@beta"
includeSystemCollections parameter used in the getCollectionInfo,
getCollectionNames,
and listCollections
methods is ignored. These methods do not return information about system
collections.