Docs Menu

Compatibility

The following compatibility table specifies the recommended version or versions of the MongoDB PHP Library and extension that you can use with a specific version of MongoDB.

The first column lists the version of the library and extension.

PHP Driver Versions
MongoDB 8.0
MongoDB 7.0
MongoDB 6.0
MongoDB 5.0
MongoDB 4.4
MongoDB 4.2
MongoDB 4.0
MongoDB 3.6
MongoDB 3.4
ext + lib 1.20
ext + lib 1.16 to 1.19
ext + lib 1.15

For more information on how to read the compatibility tables, see our guide on MongoDB Compatibility Tables.

The following compatibility table specifies the recommended version or versions of the MongoDB PHP Library and extension that you can use with a specific version of PHP.

The first column lists the version of the library and extension.

PHP Driver Versions
PHP 8.4
PHP 8.3
PHP 8.2
PHP 8.1
PHP 8.0
PHP 7.4
PHP 7.3
ext + lib 1.20
ext + lib 1.17 to 1.19
ext + lib 1.16
ext + lib 1.15

For more information on how to read the compatibility tables, see our guide on MongoDB Compatibility Tables.

If you have questions about compatibility, visit the following resources for further guidance: