The current environment is php 7.0, and mongo and mongodb extensions need to be installed, but the appropriate ones cannot be found
How to install it?
The current environment is php 7.0, and mongo and mongodb extensions need to be installed, but the appropriate ones cannot be found
How to install it?
There are two mongodb extensions on pecl, both are officially produced, one is called mongo and the other is mongodb. The former has been officially abandoned and no longer provides stable updates. The official recommends the use of the latter, and the latter is supported php7. You can find it by searching for mongodb on pecl, or you can install it through pecl install mongodb
. The structures of mongo and mongodb are completely different, and the usage methods are also very different. However, there is an official PHP adaptation package that can make mongodb look similar to the mongo experience: https://github.com/mongodb/mongo-php-library