Closed ghost closed 6 years ago
We don't have specific documentation for this bundle, but the ODM docs have a section for installing on PHP 7. Note that these are a bit out of date and the recommended procedure to solve this is to run the following command:
composer config "platform.ext-mongo" "1.6.16" && composer require alcaeus/mongo-php-adapter
I'll make sure to update the ODM docs and add a more visible chapter to the Symfony documentation for the bundle.
From what I see the documentation was updated so I'm closing this :)
The Documentation need to be updated again for new symfony version 4.2 . There is no folder called App now and AppKernel.php renamed to Kernel.php and this generate example etc. Also mention this PHP 7 fix
composer config "platform.ext-mongo" "1.6.16" && composer require alcaeus/mongo-php-adapter
in new documentation so Devs following the Docs do not have to search this place.
For one, this library has nothing to do with Symfony, only the bundle for mongodb-odm does. Furthermore, this library is no longer maintained; it is considered legacy for usage with mongodb-odm only. Its documentation specifies more than enough info how to use it with PHP 7 and if you’re not using ODM, you should no longer rely on this library.
Last but not least, don’t resurface old issues; please create a new one instead. Thanks!
Hello,
I'm trying to install the package in my project with (PHP 7.1 on MacOSX with brew package manager). I get an error about version of mongo library.
doctrine/mongodb
requiresmongo 1.6.7
which is not inbrew
. (only newermongodb-1.3.3
is available there). So I tried to install mongo ext withpecl
, unfortunatelly:pecl/mongo requires PHP (version >= 5.3.0, version <= 5.99.99), installed version is 7.1.11
.Do I understand this correctly that I can't use
doctrine/mongodb
in my procject with current PHP version? Or is there a way to bypass this?Full error here: