qmetrics.net

Mongo PHP Library

High-level official MongoDB client for PHP

DatabasesDesktop/CLI app
Mongo PHP Library screenshot

The MongoDB PHP library wraps the mongodb extension with client, database, and collection objects, CRUD, and commands aligned with other MongoDB drivers.

Overview

The MongoDB PHP library is the official high-level API for PHP applications that use MongoDB. It sits above the mongodb PHP extension, which offers a lower-level interface for connections, BSON, cursors, and command execution. The library models clients, databases, and collections and implements CRUD, index and collection management, and common commands in line with cross-driver specifications.

Installation is typically through Composer for the library and PECL for the extension. Documentation describes driver architecture among the PHP library, the extension, and underlying C driver and BSON components. The library is presented as the usual dependency for MongoDB access in PHP, not the extension alone.

Guides cover connection setup, databases and collections, CRUD, aggregation, custom data formats, indexes, database commands, MongoDB Search, MongoDB Vector Search, monitoring, logging, and securing data. AWS Lambda deployment is mentioned in overview material on the docs site.

The API is kept consistent with other MongoDB drivers and updated as cross-driver specs evolve. PHP applications are expected to depend on the library to reach MongoDB in most cases.

Key features

  • Client, database, and collection models
  • CRUD and common commands
  • Index and collection management
  • Aggregation operations
  • Works with mongodb PECL extension
  • Composer package installation
  • MongoDB Search queries
  • MongoDB Vector Search queries

Use cases

  • PHP web apps on MongoDB
  • High-level driver instead of extension only
  • Cross-driver-consistent MongoDB API
  • Search and vector queries from PHP
  • Deploying PHP with MongoDB on AWS Lambda

Tags

Similar software

Supabase

Open-source Postgres platform with auth, APIs, and storage

Supabase bundles a dedicated Postgres database with authentication, auto-generated REST and GraphQL APIs, realtime, functions, file storage, and vector tooling.

★ 115.6k⟳ todayApache-2.0
Open Source Alternative to:FirebaseFirebase Realtime Database

Prometheus

Open-source metrics monitoring and time series database

Prometheus collects metrics from configured targets, evaluates rules, and can raise alerts. It stores time series data and exposes a query language called PromQL.

★ 67.9k⟳ yesterdayApache-2.0
Open Source Alternative to:PRTG Network Monitor

NocoDB

Self-hostable no-code database with spreadsheet interface

NocoDB turns Postgres, MySQL, SQLite, or a hosted database into editable tables with grid, kanban, form, gallery, and calendar views. Teams collaborate with roles, sharing, REST APIs, and workflow integrations.

★ 65.6k⟳ todaySource-available
DatabasesSelf-hostable

etcd

Raft-backed distributed consistent key-value store

etcd stores small critical configuration and coordination data for clusters. It exposes a gRPC API, tolerates failures via Raft, and ships with the etcdctl command-line client.

★ 52.7k⟳ 3 days agoApache-2.0
DatabasesSelf-hostable

DBeaver

Universal multi-platform database tool and SQL client

Free desktop client for developers and DBAs with SQL editing, data editing, ER diagrams, exports, and support for hundreds of JDBC or ODBC databases.

★ 52.6k⟳ todayApache-2.0
DatabasesDesktop/CLI app
Open Source Alternative to:DataGripNavicat+2

ClickHouse

Column-oriented real-time analytics database management system

ClickHouse is a column-oriented database for generating analytical reports in real time using SQL on large datasets.

★ 51.2k⟳ todayApache-2.0
Open Source Alternative to:Amazon Redshift