If you are using composer, add to your composer.json:
{ "require": { "phpclasses/xmongodb": ">=1.0" }, "repositories": [ { "type": "composer", "url": "http:\/\/www.phpclasses.org\/" }, { "packagist": false } ] }
info at phpclasses dot org