Docs Menu

MongoDB with PHP

Build PHP applications with MongoDB's Atlas cloud database . Utilize PHP drivers, MongoDB integrations with Laravel and Symfony, Doctrine ODM, and other developer tools for seamless integration with your PHP applications.

Get started with the MongoDB PHP Driver
PHP landing page hero image

The MongoDB PHP Driver consists of the extension and library. While it is possible to use the extension alone, MongoDB recommends using the extension and the library together to build an application.

Driver card icon

Extension

Provides a low-level API and serves to integrate the C libraries libmongoc and libbson with PHP.

Driver card icon

Library

Provides a high-level API for working with MongoDB databases consistent with other MongoDB language drivers.

Configure connections to different databases or clusters, store and retrieve objects, or use MongoDB as a data store.

Laravel logo

Laravel

Symfony logo

Symfony

Yii logo

Yii Framework

Laravel MongoDB →

Doctrine ODM →

Flysystem →

Drupal →

Docs icon

PHP Frameworks, Libraries, and Tools

PHP Reference →

DevHub icon

View PHP developer resources

PHP Resources →

Learn icon

Learn about PHP and MongoDB

PHP Developer Path →

Community icon

Join forums and discussions

MongoDB Community →