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
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
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