Hướng dẫn alcaeus mongo php adapter
Show The Mongo PHP Adapter is a
userland library designed to act as an adapter between applications relying on ext-mongo and the new driver ( It provides the API of ext-mongo built on top of mongo-php-library, thus being compatible with PHP 7. GoalThis library aims to provide a compatibility layer for applications that rely on libraries using ext-mongo, e.g. Doctrine MongoDB ODM, but want to
migrate to PHP 7 on which You should not be using this library if you do not rely on a library using InstallationThis library requires you to have the The preferred method of installing this library is with Composer by running the following from your project root:
The above command first marks the Known issuesReturn values and exceptionsSome methods may not throw exceptions with the same exception messages as their counterparts in Methods that return a result array
containing a ErrorsAll errors and warnings triggered by Serialization of objectsSerialization of any Mongo* objects (e.g. MongoGridFSFile, MongoCursor, etc.) will not work properly. The objects can be serialized but are not usable after unserializing them. Mongo
MongoLog
MongoClient
MongoDB
MongoCollection
MongoCursor
MongoCommandCursor
DevelopmentIf you are working on patches to this driver, you can run the unit tests by following these steps from the root of the repo directory:
It assumes that the the
The tests also assume PHP 5.6+ and the |