Home > Backend Development > PHP Tutorial > mongodb - php 7.0 install mongo extension

mongodb - php 7.0 install mongo extension

WBOY
Release: 2016-07-06 13:53:04
Original
1236 people have browsed it

The current environment is php 7.0, and mongo and mongodb extensions need to be installed, but the appropriate ones cannot be found
mongodb - php 7.0 install mongo extension

mongodb - php 7.0 install mongo extension

How to install it?

Reply content:

The current environment is php 7.0, and mongo and mongodb extensions need to be installed, but the appropriate ones cannot be found
mongodb - php 7.0 install mongo extension

mongodb - php 7.0 install mongo extension

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template