The MongoDB PHP Library is the official high-level library that lets PHP applications interact with MongoDB using a modern, expressive API. It provides object-oriented classes for databases, collections, queries, and operations, so PHP developers can compose CRUD and aggregation pipelines without writing low-level protocol code. Built on top of the underlying MongoDB PHP extension, the library handles serialization, connection pooling, and error handling in a way that feels natural in idiomatic PHP. It supports rich query expressions, bulk writes, change streams, transactions, and GridFS, making it suitable for everything from simple content apps to complex data processing services. The project also includes helpers for working with BSON types such as ObjectId, UTC datetime, and decimals, which helps bridge the gap between native PHP types and MongoDB’s storage model.

Features

  • High-level MongoDB API for PHP applications
  • Object-oriented database, collection, and query classes
  • Supports change streams, transactions, and bulk operations
  • Built-in helpers for BSON types like ObjectId and UTC datetime
  • GridFS support for large file storage
  • Integrates with PHP frameworks and ecosystem tools

Project Samples

Project Activity

See All Activity >

Categories

Database

License

Apache License V2.0

Follow MongoDB PHP Library

MongoDB PHP Library Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of MongoDB PHP Library!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Database Software

Registered

2026-01-22