Compatibility
MongoDB 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.
Important
MongoDB ensures compatibility between the MongoDB Server and the drivers for three years after the server version's end of life (EOL) date. To learn more about the MongoDB release and EOL dates, see MongoDB Software Lifecycle Schedules.
Compatibility Table Legend
Icon | Explanation |
---|---|
✓ | All features are supported. |
⊛ | The Driver version will work with the MongoDB version, but not all
new MongoDB features are supported. |
No mark | The Driver version is not tested with the MongoDB version. |
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 |
---|---|---|---|---|---|---|---|---|
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.
Language 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 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.
How to Get Help
If you have questions about compatibility, visit the following resources for further guidance:
Ask questions on our MongoDB Community Forums.
Visit our Support Channels.
File an issue or feature request in our issue tracker, JIRA, under one of the following projects: