You can use mongoOd without the REST API. But remember that this is a Replica Set, so you need to configure PHP to configure ReplicaSet ...
I use mongoOd inside ruby ββand mongoid (not REST API)
Here is an example php
<?php // connecting to mongood.com cluster $m = new Mongo("mongodb://94.23.54.103:27017,188.165.219.99:27017,94.23.220.151:27017", array("replicaSet" => "cluster")); var_dump($m); $db = $m->selectDB('my_database'); $db->authenticate("my_login", "my_password"); $collection = new MongoCollection($db, 'my_collection'); $cursor = $collection->find(); foreach ($cursor as $doc) { var_dump($doc); } ?>
Enjoy :)
MongoOd team member
source share