diff --git a/.gitignore b/.gitignore
index 62c893550adb53d3a8fc29a1584ff831cb829062..f3412c6af8a1234bf638ee5f4ca784474cb493fb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,47 @@
-.idea/
\ No newline at end of file
+.idea/
+### JetBrains template
+# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
+# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
+
+# User-specific stuff:
+.idea/workspace.xml
+.idea/tasks.xml
+.idea/dictionaries
+.idea/vcs.xml
+.idea/jsLibraryMappings.xml
+
+# Sensitive or high-churn files:
+.idea/dataSources.ids
+.idea/dataSources.xml
+.idea/dataSources.local.xml
+.idea/sqlDataSources.xml
+.idea/dynamic.xml
+.idea/uiDesigner.xml
+
+# Gradle:
+.idea/gradle.xml
+.idea/libraries
+
+# Mongo Explorer plugin:
+.idea/mongoSettings.xml
+
+## File-based project format:
+*.iws
+
+## Plugin-specific files:
+
+# IntelliJ
+/out/
+
+# mpeltonen/sbt-idea plugin
+.idea_modules/
+
+# JIRA plugin
+atlassian-ide-plugin.xml
+
+# Crashlytics plugin (for Android Studio and IntelliJ)
+com_crashlytics_export_strings.xml
+crashlytics.properties
+crashlytics-build.properties
+fabric.properties
+
diff --git a/php/Dockerfile b/php/Dockerfile
index 9a5e95fda0f9fc2b188f57c4f97b5418a5a618fa..a266eadb3915dbca13dfe17792dd69eb40dee5d2 100644
--- a/php/Dockerfile
+++ b/php/Dockerfile
@@ -32,7 +32,8 @@ RUN docker-php-ext-install bcmath &&\
     docker-php-ext-install xsl &&\
     docker-php-ext-install zip &&\
     docker-php-ext-configure hash --with-mhash &&\
-    pecl install xdebug && docker-php-ext-enable xdebug
+    pecl install xdebug && docker-php-ext-enable xdebug &&\
+    pecl install mongodb && docker-php-ext-enable mongodb
 
 # composer