Add MongoDB extension to PHP in windows

By | December 18, 2018

[[ Add MongoDB extension to PHP in windows ]]

Download(http://pecl.php.net/package/mongodb) the appropriate Non Thread Safe MongoDB extension based on your PHP version.

Extract the downloaded archive and put php_mongodb.dll in your PHP extension directory (“ext” by default).

Now, add the following line to your php.ini file:

That’s all. you can check using phpinfo() function that now MongoDB extension is available.

Reference: http://php.net/manual/en/mongodb.installation.windows.php

Leave a Reply

Your email address will not be published. Required fields are marked *