Skip to content

Instantly share code, notes, and snippets.

@danilobatistaqueiroz
Created November 5, 2017 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danilobatistaqueiroz/eab772018e3ad0c6f8145f10ab4e051c to your computer and use it in GitHub Desktop.
Save danilobatistaqueiroz/eab772018e3ad0c6f8145f10ab4e051c to your computer and use it in GitHub Desktop.
Php with mongodb

configuring php extension for mongodb

download the PECL extension:

https://pecl.php.net/package/mongodb

download and unpack the file: mongodb.dll or mongodb.so in the directory ext

open php.ini and configure the extension:

extension=php_mongodb.dll


configuring an application to use the library:

composer require mongodb/mongodb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment