MongolabLiteUtils provides convenient wrapper methods for connecting to and using a mongolab database.
MongolabLiteUtils provides convenient wrapper methods for connecting to and using a mongolab database., (*1)
https://mongolab.com/, (*2)
use MongolabLiteUtils\MongolabLiteUtils;, (*3)
$mongo = new MongolabLiteUtils(getenv('MONGOLAB_URI'));, (*4)
$collection = $mongo->getCollection('collection_name');, (*5)
$collection->insert($record);, (*6)
$data = $collection->find();, (*7)
Sources Download