php70-mongo install doctrine/mongodb-odm fails
On PHP7 you have mongodb
extension as @xaben mentioned. You can use this with doctrine until it support mongodb
but by installing additional library https://github.com/alcaeus/mongo-php-adapter
First install via composer:
composer require alcaeus/mongo-php-adapter
and later install doctrine. It's works very well in my case.
PHP has 2 extensions for MongoDB:
- The legacy one found at http://php.net/manual/en/book.mongo.php
- The current one http://php.net/manual/en/set.mongodb.php
In case of "doctrine/mongodb-odm" it expects to find the legacy one "mongo" but what you have installed is the newer one "mongodb".
In order to use the legacy extension you need to use php <= 5.6, for php 7 only mongodb is available.