I update a simple skeleton project ZF2 to PHP7 and I install the libraries for mongodb in php7
sudo pecl install mongodb
And I add in cli php.in the line
extension=mongodb.so
I do a phpinfo and the extension of mongodb is 1.1.3-dev.
I try to install:
- "doctrine/doctrine-mongo-odm-module": "dev-master"
- "doctrine/mongodb-odm": "dev-master"
But I have an error.
doctrine/mongodb 1.2.1 requires ext-mongo ^1.2.12 -> the requested PHP extension mongo is missing from your system.....
The question is doctrine-mongodb is compatible with php7 and the php driver mongodb-1.1?
Not yet. Thay are working on this issue. You can find information about progress, or some methods to run doctrine-odm on php 7 in this thread