Module to operate the Mongo part of the complex delivery PHP provides the ability to connect to the server immediately — allowing you to choose database and collection with no connection. To do this, there is such a design:
$mongo = new \\Mongo (MONGO_SERVER, array ("connect" => false));
However, in order to perform any action with the data you must first call $mongo->connect ()
.
In this connection the question arose — maybe there is a ready solution, a layer to work with Mongo like Zend_Db or Rediska, where it is already implemented?
To connect each time it is pointless to reinvent the wheel — also I do not want, appealed to the collective mind :-)