We've installed php mongo ext and then have the composer set up as well.
https://github.com/alcaeus/mongo-php-adapter
In my php code I've this:
require_once 'vendor/autoload.php';
$m = new MongoDB\Client("mongodb://host1,host2", array ('replicaSet' => 'host-set-01'));
$document = array(....);
$db->mycollection->insert($document);
And it returned this error:
PHP Fatal error: Uncaught Error: Call to undefined method MongoDB\Collection::insert()
But inside the adapter's folder I do see insert() inside that collection class Mongo/MongoCollection.php
Anyone got it working with the mongodb/adapter?