Chapter#2 Connecting to MongoDB


Startup mongod. $manager = new MongoDB\Driver\Manager("mongodb://localhost");

Пример #1 Connecting to MongoDB

<?php

$manager 
= new MongoDB\Driver\Manager("mongodb://localhost:27017/");

?>