Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the status of the MongoDB extension for PHP7?

Tags:

mongodb

php-7

PHP7 is gaining a lot of attention lately, promising great performance and a more mature language. Version 7.0.0-alpha is out. We are just starting to rework our core application, which uses MongoDB as data source.

I am wondering if there is any development underway for a PHP7 compatible MongoDB extension? How far is it? Is there any alternative?

like image 825
markz Avatar asked Jun 16 '15 19:06

markz


People also ask

What is MongoDB extension?

MongoDB is a NoSQL database server. When you install the mongo PHP extension, it will allow PHP to communicate with a MongoDB server. The MongoDB PHP extension supports PHP 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, and 7.3.

Can we connect PHP with MongoDB?

You can add the driver to your application to work with MongoDB in PHP. The MongoDB PHP Driver consists of the two following components: The extension , which provides a low-level API and mainly serves to integrate libmongoc and libbson with PHP.


1 Answers

Version 1.1.1 of the new "mongodb" extension supports PHP 7, as does the complementary userland library.

like image 75
jmikola Avatar answered Oct 08 '22 13:10

jmikola