Installing the MongoDB PHP Driver on Windows

Precompiled binaries for each release are available from » PECL for a variety of combinations of versions, thread safety, and VC libraries. Extract the archive and put php_mongodb.dll in your PHP extension directory ("ext" by default).

Add the following line to your php.ini file:

extension=php_mongodb.dll

Informacja: Additional DLL dependencies for Windows Users

Aby poprawnie działało rozszerzenie, pliki DLL muszą znajdować się w miejscu wskazanym przez PATH systemu Windows. Aby uzyskać więcej informacji zobacz FAQ zatytułowane "Jak mam dodać mój katalog PHP do PATH w Windows". Chociaż skopiowanie plików DLL z folderu PHP do systemowego katalogu Windows także zadziała (ponieważ katalog systemowy jest domyślnie w PATH systemu), ale nie jest to wymagane. To rozszerzenie wymaga następujących plików znajdujących się w PATH: libsasl.dll

add a note add a note

User Contributed Notes 2 notes

up
-8
luchontandil3 at gmail dot com
3 years ago
Try using:

extension=php_mongodb.dll

instead and restarting the xammp server for php
also download the correct .dll for your version of php

you can check your version of php with index.php and inside adding

<?php
phpinfo
();
>
up
-27
Xylon Reyes
7 years ago
With the newer version of MongoDB, this should be...

extension=php_mongodb.dll

(the filename of the latest stable release at PECL)

Official MongoDB library are available at GitHub as well as its documentation.

Precompiled binaries are also available at GitHub for the legacy and the newer version.
To Top