# PHP Library Manual - (current) > Explore the MongoDB PHP Library for high-level database operations, including installation, connection, data manipulation, and deployment on AWS Lambda. - [Aggregation Operations](https://www.mongodb.com/docs/php-library/current/aggregation.md): Learn how to use the MongoDB PHP Library to run aggregation operations that process data in your collections and return computed results with pipelines. - [Run a MongoDB Search Query](https://www.mongodb.com/docs/php-library/current/atlas-search.md) - [Connect to MongoDB](https://www.mongodb.com/docs/php-library/current/connect.md): Learn how to connect to MongoDB by using the MongoDB PHP Library with code examples for Atlas, local deployments, replica sets, and connection options. - [Create a MongoDB Client](https://www.mongodb.com/docs/php-library/current/connect/client.md) - [Specify Connection Options](https://www.mongodb.com/docs/php-library/current/connect/connection-options.md): Configure MongoDB PHP Library connection options, including replica set, TLS, timeout, compression, read preference, write concern, and retryable reads and writes settings in PHP. - [Compress Network Traffic](https://www.mongodb.com/docs/php-library/current/connect/connection-options/network-compression.md): Enable network compression in the MongoDB PHP library to reduce the data transferred and transfer costs by using the Snappy, Zlib, or Zstandard algorithms. - [Connect with Stable API](https://www.mongodb.com/docs/php-library/current/connect/connection-options/stable-api.md) - [Choose a Connection Target](https://www.mongodb.com/docs/php-library/current/connect/connection-targets.md) - [Connection Troubleshooting](https://www.mongodb.com/docs/php-library/current/connect/connection-troubleshooting.md) - [Operations with Builders](https://www.mongodb.com/docs/php-library/current/crud/builders.md) - [Bulk Write Operations](https://www.mongodb.com/docs/php-library/current/crud/bulk-write.md) - [Delete Documents](https://www.mongodb.com/docs/php-library/current/crud/delete.md) - [Store Large Files](https://www.mongodb.com/docs/php-library/current/crud/gridfs.md) - [Insert Documents](https://www.mongodb.com/docs/php-library/current/crud/insert.md) - [Count Documents](https://www.mongodb.com/docs/php-library/current/crud/query/count.md) - [Access Data From a Cursor](https://www.mongodb.com/docs/php-library/current/crud/query/cursor.md) - [Retrieve Distinct Field Values](https://www.mongodb.com/docs/php-library/current/crud/query/distinct.md) - [Specify Fields To Return](https://www.mongodb.com/docs/php-library/current/crud/query/project.md) - [Retrieve Data](https://www.mongodb.com/docs/php-library/current/crud/query/retrieve.md) - [Specify a Query](https://www.mongodb.com/docs/php-library/current/crud/query/specify-a-query.md) - [Specify Documents to Return](https://www.mongodb.com/docs/php-library/current/crud/query/specify-documents-to-return.md) - [Configure CRUD Operations](https://www.mongodb.com/docs/php-library/current/crud/read-write-pref.md) - [Replace Documents](https://www.mongodb.com/docs/php-library/current/crud/replace.md) - [Transactions and Sessions](https://www.mongodb.com/docs/php-library/current/crud/transaction.md) - [Update Documents](https://www.mongodb.com/docs/php-library/current/crud/update.md) - [Custom Data-Types](https://www.mongodb.com/docs/php-library/current/data-formats/custom-types.md) - [Encode Data with Type Codecs](https://www.mongodb.com/docs/php-library/current/data-formats/custom-types/codecs.md) - [Decimal128](https://www.mongodb.com/docs/php-library/current/data-formats/decimal128.md) - [Work with Extended JSON Data](https://www.mongodb.com/docs/php-library/current/data-formats/extended-json.md) - [Work with BSON Data](https://www.mongodb.com/docs/php-library/current/data-formats/modeling-bson-data.md) - [Time Series Collections](https://www.mongodb.com/docs/php-library/current/data-formats/time-series.md) - [Databases and Collections](https://www.mongodb.com/docs/php-library/current/databases-collections.md) - [Get Started with the MongoDB PHP Library](https://www.mongodb.com/docs/php-library/current/get-started.md): Learn how to create an app to connect to MongoDB deployment by using the PHP library. - [MongoDB PHP Library](https://www.mongodb.com/docs/php-library/current/index.md): Explore the MongoDB PHP Library for high-level database operations, including installation, connection, data manipulation, and deployment on AWS Lambda. - [Indexes for Query Optimization](https://www.mongodb.com/docs/php-library/current/indexes.md): Learn how to create and manage indexes by using the MongoDB PHP library, including single field, compound, multikey, text, and MongoDB Search indexes. - [MongoDB Search Indexes](https://www.mongodb.com/docs/php-library/current/indexes/atlas-search-index.md) - [Compound Indexes](https://www.mongodb.com/docs/php-library/current/indexes/compound-index.md) - [Index Considerations and Management](https://www.mongodb.com/docs/php-library/current/indexes/index-mgmt.md) - [Multikey Indexes](https://www.mongodb.com/docs/php-library/current/indexes/multikey-index.md) - [Single Field Indexes](https://www.mongodb.com/docs/php-library/current/indexes/single-field-index.md) - [Queryable Encryption with Symfony and Doctrine ODM](https://www.mongodb.com/docs/php-library/current/integrations/symfony-qe.md): Learn how to use Queryable Encryption in a Symfony application with Doctrine MongoDB ODM for automatic encryption and decryption of sensitive data fields. - [Report Issues & Request Help](https://www.mongodb.com/docs/php-library/current/issues-and-help.md): Find support for the PHP library, report bugs or feature requests, and learn how to contribute. - [Monitor Data with Change Streams](https://www.mongodb.com/docs/php-library/current/monitoring-logging/change-streams.md) - [Log Driver Events](https://www.mongodb.com/docs/php-library/current/monitoring-logging/logging.md) - [Monitor Application Events](https://www.mongodb.com/docs/php-library/current/monitoring-logging/monitoring.md) - [BSON](https://www.mongodb.com/docs/php-library/current/reference/bson.md): Understand how BSON documents and arrays are represented and serialized in the MongoDB PHP Library using BSONDocument and BSONArray classes. - [MongoDB\\BulkWriteCommandResult Class](https://www.mongodb.com/docs/php-library/current/reference/class/MongoDBBulkWriteCommandResult.md) - [MongoDB\\BulkWriteResult Class](https://www.mongodb.com/docs/php-library/current/reference/class/MongoDBBulkWriteResult.md) - [MongoDB\\ChangeStream Class](https://www.mongodb.com/docs/php-library/current/reference/class/MongoDBChangeStream.md) - [MongoDB\\Client Class](https://www.mongodb.com/docs/php-library/current/reference/class/MongoDBClient.md): Explore the MongoDB\Client class, the entry point for connecting to MongoDB servers and accessing databases and collections in the MongoDB PHP Library. - [MongoDB\\ClientBulkWrite Class](https://www.mongodb.com/docs/php-library/current/reference/class/MongoDBClientBulkWrite.md) - [MongoDB\\Collection Class](https://www.mongodb.com/docs/php-library/current/reference/class/MongoDBCollection.md): Explore methods for performing CRUD operations and index management with the MongoDB\Collection class in the MongoDB PHP Library. - [MongoDB\\Database Class](https://www.mongodb.com/docs/php-library/current/reference/class/MongoDBDatabase.md): Explore methods for database operations and collection management using the MongoDB\Database class in the MongoDB PHP Library. - [MongoDB\\DeleteResult Class](https://www.mongodb.com/docs/php-library/current/reference/class/MongoDBDeleteResult.md) - [MongoDB\\GridFS\\Bucket Class](https://www.mongodb.com/docs/php-library/current/reference/class/MongoDBGridFSBucket.md): Explore the MongoDB\GridFS\Bucket class for managing file storage and retrieval in the MongoDB PHP Library using PHP Streams. - [MongoDB\\InsertManyResult Class](https://www.mongodb.com/docs/php-library/current/reference/class/MongoDBInsertManyResult.md) - [MongoDB\\InsertOneResult Class](https://www.mongodb.com/docs/php-library/current/reference/class/MongoDBInsertOneResult.md) - [MongoDB\\Model\\CollectionInfo Class](https://www.mongodb.com/docs/php-library/current/reference/class/MongoDBModelCollectionInfo.md) - [MongoDB\\Model\\DatabaseInfo Class](https://www.mongodb.com/docs/php-library/current/reference/class/MongoDBModelDatabaseInfo.md) - [MongoDB\\Model\\IndexInfo Class](https://www.mongodb.com/docs/php-library/current/reference/class/MongoDBModelIndexInfo.md) - [MongoDB\\UpdateResult Class](https://www.mongodb.com/docs/php-library/current/reference/class/MongoDBUpdateResult.md) - [Exception Classes](https://www.mongodb.com/docs/php-library/current/reference/exception-classes.md): Explore MongoDB\Exception classes in the MongoDB PHP Library, detailing their usage and inheritance. - [MongoDB\\add_logger()](https://www.mongodb.com/docs/php-library/current/reference/function/add_logger.md) - [MongoDB\\remove_logger()](https://www.mongodb.com/docs/php-library/current/reference/function/remove_logger.md) - [MongoDB\\with_transaction()](https://www.mongodb.com/docs/php-library/current/reference/function/with_transaction.md) - [Functions](https://www.mongodb.com/docs/php-library/current/reference/functions.md) - [MongoDB\\BulkWriteResult::getDeletedCount()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBBulkWriteResult-getDeletedCount.md) - [MongoDB\\BulkWriteResult::getInsertedCount()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBBulkWriteResult-getInsertedCount.md) - [MongoDB\\BulkWriteResult::getInsertedIds()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBBulkWriteResult-getInsertedIds.md) - [MongoDB\\BulkWriteResult::getMatchedCount()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBBulkWriteResult-getMatchedCount.md) - [MongoDB\\BulkWriteResult::getModifiedCount()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBBulkWriteResult-getModifiedCount.md) - [MongoDB\\BulkWriteResult::getUpsertedCount()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBBulkWriteResult-getUpsertedCount.md) - [MongoDB\\BulkWriteResult::getUpsertedIds()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBBulkWriteResult-getUpsertedIds.md) - [MongoDB\\BulkWriteResult::isAcknowledged()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBBulkWriteResult-isAcknowledged.md) - [MongoDB\\ChangeStream::current()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBChangeStream-current.md) - [MongoDB\\ChangeStream::getCursorId()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBChangeStream-getCursorId.md) - [MongoDB\\ChangeStream::getResumeToken()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBChangeStream-getResumeToken.md) - [MongoDB\\ChangeStream::key()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBChangeStream-key.md) - [MongoDB\\ChangeStream::next()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBChangeStream-next.md) - [MongoDB\\ChangeStream::rewind()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBChangeStream-rewind.md) - [MongoDB\\ChangeStream::valid()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBChangeStream-valid.md) - [MongoDB\\Client::addSubscriber()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClient-addSubscriber.md): Register a monitoring event subscriber with a MongoDB Client to receive notifications of all events for that Client. - [MongoDB\\Client::bulkWrite()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClient-bulkWrite.md): Perform write operations across multiple namespaces by using the MongoDB PHP Library. - [MongoDB\\Client::createClientEncryption()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClient-createClientEncryption.md): Create a ClientEncryption object in PHP for manual encryption and decryption of values with the MongoDB PHP Library. - [MongoDB\\Client::dropDatabase()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClient-dropDatabase.md): Drop a database on the server with options for comments, sessions, type maps, and write concerns with the MongoDB PHP Library. - [MongoDB\\Client::getCollection()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClient-getCollection.md) - [MongoDB\\Client::getDatabase()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClient-getDatabase.md) - [MongoDB\\Client::getManager()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClient-getManager.md): Access the MongoDB\Driver\Manager used by a Client with the MongoDB PHP Library. - [MongoDB\\Client::getReadConcern()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClient-getReadConcern.md): Retrieve the read concern level set for a Client with the MongoDB PHP Library. - [MongoDB\\Client::getReadPreference()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClient-getReadPreference.md): Retrieve the read preference setting for a Client with the MongoDB PHP Library. - [MongoDB\\Client::getTypeMap()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClient-getTypeMap.md): Learn how to use the getTypeMap() method in the MongoDB PHP Library to retrieve the type map that a client uses to convert BSON documents to PHP values. - [MongoDB\\Client::getWriteConcern()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClient-getWriteConcern.md): Learn how to use the getWriteConcern() method in the MongoDB PHP Library to retrieve the write concern that a client applies to all of its write operations. - [MongoDB\\Client::listDatabaseNames()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClient-listDatabaseNames.md): Retrieve database names from a MongoDB server with the MongoDB PHP Library, with optional parameters for filtering and session management. - [MongoDB\\Client::listDatabases()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClient-listDatabases.md): Retrieve information for all databases on the server with the MongoDB PHP Library, with optional parameters for filtering and session association. - [MongoDB\\Client::removeSubscriber()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClient-removeSubscriber.md): Unregister a monitoring event subscriber from a Client with the MongoDB PHP Library. - [MongoDB\\Client::selectCollection()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClient-selectCollection.md): Select a collection on the server with the MongoDB PHP Library, with customizable options for read and write concerns. - [MongoDB\\Client::selectDatabase()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClient-selectDatabase.md): Select a database on the server with the MongoDB PHP Library, with options for read and write concerns, read preference, and type mapping. - [MongoDB\\Client::startSession()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClient-startSession.md): Start a new client session with the MongoDB PHP Library and handle potential exceptions. - [MongoDB\\Client::watch()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClient-watch.md): Execute a change stream operation on the Client to monitor cluster-level changes with the MongoDB PHP Library. - [MongoDB\\ClientBulkWrite::createWithCollection()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClientBulkWrite-createWithCollection.md) - [MongoDB\\ClientBulkWrite::deleteMany()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClientBulkWrite-deleteMany.md) - [MongoDB\\ClientBulkWrite::deleteOne()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClientBulkWrite-deleteOne.md) - [MongoDB\\ClientBulkWrite::insertOne()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClientBulkWrite-insertOne.md) - [MongoDB\\ClientBulkWrite::replaceOne()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClientBulkWrite-replaceOne.md) - [MongoDB\\ClientBulkWrite::updateMany()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClientBulkWrite-updateMany.md) - [MongoDB\\ClientBulkWrite::updateOne()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClientBulkWrite-updateOne.md) - [MongoDB\\ClientBulkWrite::withCollection()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClientBulkWrite-withCollection.md) - [MongoDB\\Client::__construct()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClient__construct.md): Learn how to construct a MongoDB Client instance with the MongoDB PHP Library, including options for connection strings, authentication, SSL, and type maps. - [MongoDB\\Client::__get()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBClient__get.md): Access a database on the server with the MongoDB PHP Library, which acts as an alias for the selectDatabase() method. - [MongoDB\\Collection::aggregate()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-aggregate.md): Execute an aggregation framework pipeline operation on a collection with the MongoDB PHP Library, with various customizable options. - [MongoDB\\Collection::bulkWrite()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-bulkWrite.md): Execute multiple write operations with the MongoDB PHP Library, with options for write concern, session, and more. - [MongoDB\\Collection::count()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-count.md): Count documents matching a filter criteria with the MongoDB PHP Library, with options for collation, hint, limit, and more. - [MongoDB\\Collection::countDocuments()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-countDocuments.md): Count documents in a collection matching a filter criteria with the MongoDB PHP Library, with various options for customization. - [MongoDB\\Collection::createIndex()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-createIndex.md): Create an index in a MongoDB collection with the MongoDB PHP Library, with options for collation, TTL, uniqueness, and more. - [MongoDB\\Collection::createIndexes()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-createIndexes.md): Create one or more indexes for a collection with the MongoDB PHP Library, with options for unique, compound, and 2dsphere indexes. - [MongoDB\\Collection::createSearchIndex()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-createSearchIndex.md): Create a MongoDB Search or Vector Search index for a collection with the MongoDB PHP Library, specifying index type and options. - [MongoDB\\Collection::createSearchIndexes()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-createSearchIndexes.md): Create MongoDB Search or MongoDB Vector Search indexes for a collection with the MongoDB PHP Library, specifying index definitions and options. - [MongoDB\\Collection::deleteMany()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-deleteMany.md): Delete multiple documents in a collection with the MongoDB PHP Library, with options for collation, hint, and write concern. - [MongoDB\\Collection::deleteOne()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-deleteOne.md): Delete a single document matching a filter criteria with the MongoDB PHP Library, with options for collation, hint, and write concern. - [MongoDB\\Collection::distinct()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-distinct.md): Find distinct values for a specified field in a collection with the MongoDB PHP Library, with options for filtering and additional parameters. - [MongoDB\\Collection::drop()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-drop.md): Remove a collection with the MongoDB PHP Library, including options for write concern and session management. - [MongoDB\\Collection::dropIndex()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-dropIndex.md): Drop an index from a collection with the MongoDB PHP Library, with options for session, write concern, and more. - [MongoDB\\Collection::dropIndexes()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-dropIndexes.md): Drop all indexes in a MongoDB collection except the `_id` index with the MongoDB PHP Library, with options for comments, time limits, and write concerns. - [MongoDB\\Collection::dropSearchIndex()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-dropSearchIndex.md): Drop a MongoDB Search index from a collection with the MongoDB PHP Library, available for Atlas deployments with a minimum M10 cluster tier. - [MongoDB\\Collection::estimatedDocumentCount()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-estimatedDocumentCount.md): Estimate the number of documents in a collection with the MongoDB PHP Library, with optional parameters for read concern, read preference, and more. - [MongoDB\\Collection::explain()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-explain.md): Analyze command execution details with the MongoDB PHP Library, including parameters and return values. - [MongoDB\\Collection::find()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-find.md): Query documents with the MongoDB PHP Library, with various options like filters, projections, and sorting in PHP. - [MongoDB\\Collection::findOne()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-findOne.md): Find a single document in a collection with the MongoDB PHP Library, with various query and option parameters. - [MongoDB\\Collection::findOneAndDelete()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-findOneAndDelete.md): Find and delete a single document in a collection with the MongoDB PHP Library, with options for collation, projection, and more. - [MongoDB\\Collection::findOneAndReplace()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-findOneAndReplace.md): Find and replace a document in a collection with the MongoDB PHP Library, with various options and return the modified document. - [MongoDB\\Collection::findOneAndUpdate()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-findOneAndUpdate.md): Find and update a single document in a collection with the MongoDB PHP Library, with options for projection, sorting, and more. - [MongoDB\\Collection::getCollectionName()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-getCollectionName.md): Learn how to use the getCollectionName() method in the MongoDB PHP Library to retrieve the name of a collection as a string, without the database name. - [MongoDB\\Collection::getDatabaseName()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-getDatabaseName.md): Retrieve the name of the database containing a specific collection with the MongoDB PHP Library. - [MongoDB\\Collection::getManager()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-getManager.md): Access the MongoDB\Driver\Manager used by a collection with the MongoDB PHP Library. - [MongoDB\\Collection::getNamespace()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-getNamespace.md): Learn how to use the getNamespace() method in the MongoDB PHP Library to retrieve a collection's namespace, its canonical name within your deployment. - [MongoDB\\Collection::getReadConcern()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-getReadConcern.md): Retrieve the read concern of a collection with the MongoDB PHP Library. - [MongoDB\\Collection::getReadPreference()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-getReadPreference.md): Retrieve the read preference of a collection with the MongoDB PHP Library. - [MongoDB\\Collection::getTypeMap()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-getTypeMap.md): Learn how to use the getTypeMap() method in the MongoDB PHP Library to retrieve the type map a collection uses to convert BSON documents to PHP values. - [MongoDB\\Collection::getWriteConcern()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-getWriteConcern.md): Retrieve the write concern of a collection with the MongoDB PHP Library. - [MongoDB\\Collection::insertMany()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-insertMany.md): Insert multiple documents into a collection with the MongoDB PHP Library, with options for validation, write concern, and session management. - [MongoDB\\Collection::insertOne()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-insertOne.md): Insert a single document into a collection with the MongoDB PHP Library, with options for validation, codec, session, and write concern. - [MongoDB\\Collection::listIndexes()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-listIndexes.md): Retrieve information about all indexes in a collection with the MongoDB PHP Library. - [MongoDB\\Collection::listSearchIndexes()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-listSearchIndexes.md): Retrieve index information for all search indexes in a collection with the MongoDB PHP Library, with various customizable options. - [MongoDB\\Collection::rename()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-rename.md): Rename a collection with the MongoDB PHP Library, with options for database name, drop target, and write concern. - [MongoDB\\Collection::replaceOne()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-replaceOne.md): Replace a single document in a collection based on filter criteria with the MongoDB PHP Library, with options for upsert, collation, and more. - [MongoDB\\Collection::updateMany()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-updateMany.md): Update multiple documents in a collection with the MongoDB PHP Library, with various options like filters, collation, and upsert. - [MongoDB\\Collection::updateOne()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-updateOne.md): Update a single document in a collection with the MongoDB PHP Library, with options like filters, collation, and upsert, and handle potential exceptions. - [MongoDB\\Collection::updateSearchIndex()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-updateSearchIndex.md): Update a MongoDB Search index for a collection with the MongoDB PHP Library, requiring an Atlas cluster tier of at least M10. - [MongoDB\\Collection::watch()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-watch.md): Execute a change stream operation on a collection to monitor collection-level changes with the MongoDB PHP Library. - [MongoDB\\Collection::withOptions()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-withOptions.md): Clone a Collection object with different options with the MongoDB PHP Library, specifying parameters like codec, read concern, and write concern. - [MongoDB\\Collection::__construct()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection__construct.md): Construct a new Collection instance with the MongoDB PHP Library, with options for read and write concerns, type mapping, and more. - [MongoDB\\Database::aggregate()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase-aggregate.md) - [MongoDB\\Database::command()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase-command.md) - [MongoDB\\Database::createCollection()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase-createCollection.md) - [MongoDB\\Database::createEncryptedCollection()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase-createEncryptedCollection.md) - [MongoDB\\Database::drop()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase-drop.md) - [MongoDB\\Database::dropCollection()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase-dropCollection.md) - [MongoDB\\Database::getCollection()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase-getCollection.md) - [MongoDB\\Database::getDatabaseName()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase-getDatabaseName.md) - [MongoDB\\Database::getGridFSBucket()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase-getGridFSBucket.md): Get access to a GridFS bucket in a MongoDB database with the MongoDB PHP Library, with customizable options for bucket name, chunk size, and more. - [MongoDB\\Database::getManager()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase-getManager.md) - [MongoDB\\Database::getReadConcern()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase-getReadConcern.md) - [MongoDB\\Database::getReadPreference()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase-getReadPreference.md) - [MongoDB\\Database::getTypeMap()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase-getTypeMap.md) - [MongoDB\\Database::getWriteConcern()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase-getWriteConcern.md) - [MongoDB\\Database::listCollectionNames()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase-listCollectionNames.md) - [MongoDB\\Database::listCollections()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase-listCollections.md) - [MongoDB\\Database::modifyCollection()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase-modifyCollection.md) - [MongoDB\\Database::renameCollection()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase-renameCollection.md) - [MongoDB\\Database::selectCollection()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase-selectCollection.md) - [MongoDB\\Database::selectGridFSBucket()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase-selectGridFSBucket.md): Select a GridFS bucket in a MongoDB database with the MongoDB PHP Library, with customizable options for bucket name, chunk size, and more. - [MongoDB\\Database::watch()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase-watch.md) - [MongoDB\\Database::withOptions()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase-withOptions.md) - [MongoDB\\Database::__construct()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase__construct.md) - [MongoDB\\Database::__get()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDatabase__get.md) - [MongoDB\\DeleteResult::getDeletedCount()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDeleteResult-getDeletedCount.md) - [MongoDB\\DeleteResult::isAcknowledged()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBDeleteResult-isAcknowledged.md) - [MongoDB\\GridFS\\Bucket::delete()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-delete.md) - [MongoDB\\GridFS\\Bucket::deleteByName()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-deleteByName.md) - [MongoDB\\GridFS\\Bucket::downloadToStream()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-downloadToStream.md) - [MongoDB\\GridFS\\Bucket::downloadToStreamByName()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-downloadToStreamByName.md): Select a GridFS file by filename and copy its contents to a writable stream with the MongoDB PHP Library, with options for file revision. - [MongoDB\\GridFS\\Bucket::drop()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-drop.md) - [MongoDB\\GridFS\\Bucket::find()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-find.md): Query documents in a GridFS bucket's files collection with the MongoDB PHP Library, with various filter and option parameters. - [MongoDB\\GridFS\\Bucket::findOne()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-findOne.md) - [MongoDB\\GridFS\\Bucket::getBucketName()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-getBucketName.md) - [MongoDB\\GridFS\\Bucket::getChunkSizeBytes()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-getChunkSizeBytes.md) - [MongoDB\\GridFS\\Bucket::getChunksCollection()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-getChunksCollection.md) - [MongoDB\\GridFS\\Bucket::getDatabaseName()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-getDatabaseName.md) - [MongoDB\\GridFS\\Bucket::getFileDocumentForStream()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-getFileDocumentForStream.md): Retrieve the file document of a GridFS file associated with a stream with the MongoDB PHP Library. - [MongoDB\\GridFS\\Bucket::getFileIdForStream()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-getFileIdForStream.md): Retrieve the file document ID for a GridFS file associated with a stream with the MongoDB PHP Library. - [MongoDB\\GridFS\\Bucket::getFilesCollection()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-getFilesCollection.md) - [MongoDB\\GridFS\\Bucket::getReadConcern()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-getReadConcern.md) - [MongoDB\\GridFS\\Bucket::getReadPreference()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-getReadPreference.md) - [MongoDB\\GridFS\\Bucket::getTypeMap()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-getTypeMap.md) - [MongoDB\\GridFS\\Bucket::getWriteConcern()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-getWriteConcern.md) - [MongoDB\\GridFS\\Bucket::openDownloadStream()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-openDownloadStream.md) - [MongoDB\\GridFS\\Bucket::openDownloadStreamByName()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-openDownloadStreamByName.md): Access a GridFS file by its filename and open it as a readable stream with the MongoDB PHP Library. - [MongoDB\\GridFS\\Bucket::openUploadStream()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-openUploadStream.md) - [MongoDB\\GridFS\\Bucket::registerGlobalStreamWrapperAlias()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-registerGlobalStreamWrapperAlias.md) - [MongoDB\\GridFS\\Bucket::rename()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-rename.md) - [MongoDB\\GridFS\\Bucket::renameByName()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-renameByName.md) - [MongoDB\\GridFS\\Bucket::uploadFromStream()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket-uploadFromStream.md) - [MongoDB\\GridFS\\Bucket::__construct()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBGridFSBucket__construct.md) - [MongoDB\\InsertManyResult::getInsertedCount()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBInsertManyResult-getInsertedCount.md) - [MongoDB\\InsertManyResult::getInsertedIds()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBInsertManyResult-getInsertedIds.md) - [MongoDB\\InsertManyResult::isAcknowledged()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBInsertManyResult-isAcknowledged.md) - [MongoDB\\InsertOneResult::getInsertedCount()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBInsertOneResult-getInsertedCount.md) - [MongoDB\\InsertOneResult::getInsertedId()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBInsertOneResult-getInsertedId.md) - [MongoDB\\InsertOneResult::isAcknowledged()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBInsertOneResult-isAcknowledged.md) - [MongoDB\\Model\\CollectionInfo::getCappedMax()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBModelCollectionInfo-getCappedMax.md) - [MongoDB\\Model\\CollectionInfo::getCappedSize()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBModelCollectionInfo-getCappedSize.md) - [MongoDB\\Model\\CollectionInfo::getIdIndex()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBModelCollectionInfo-getIdIndex.md) - [MongoDB\\Model\\CollectionInfo::getInfo()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBModelCollectionInfo-getInfo.md) - [MongoDB\\Model\\CollectionInfo::getName()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBModelCollectionInfo-getName.md) - [MongoDB\\Model\\CollectionInfo::getOptions()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBModelCollectionInfo-getOptions.md) - [MongoDB\\Model\\CollectionInfo::getType()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBModelCollectionInfo-getType.md) - [MongoDB\\Model\\CollectionInfo::isCapped()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBModelCollectionInfo-isCapped.md) - [MongoDB\\Model\\CollectionInfo::isView()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBModelCollectionInfo-isView.md) - [MongoDB\\Model\\DatabaseInfo::getName()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBModelDatabaseInfo-getName.md) - [MongoDB\\Model\\DatabaseInfo::getSizeOnDisk()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBModelDatabaseInfo-getSizeOnDisk.md) - [MongoDB\\Model\\DatabaseInfo::isEmpty()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBModelDatabaseInfo-isEmpty.md) - [MongoDB\\Model\\IndexInfo::getKey()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBModelIndexInfo-getKey.md) - [MongoDB\\Model\\IndexInfo::getName()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBModelIndexInfo-getName.md) - [MongoDB\\Model\\IndexInfo::getNamespace()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBModelIndexInfo-getNamespace.md) - [MongoDB\\Model\\IndexInfo::getVersion()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBModelIndexInfo-getVersion.md) - [MongoDB\\Model\\IndexInfo::is2dSphere()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBModelIndexInfo-is2dSphere.md) - [MongoDB\\Model\\IndexInfo::isSparse()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBModelIndexInfo-isSparse.md) - [MongoDB\\Model\\IndexInfo::isText()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBModelIndexInfo-isText.md) - [MongoDB\\Model\\IndexInfo::isTtl()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBModelIndexInfo-isTtl.md) - [MongoDB\\Model\\IndexInfo::isUnique()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBModelIndexInfo-isUnique.md) - [MongoDB\\UpdateResult::getMatchedCount()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBUpdateResult-getMatchedCount.md) - [MongoDB\\UpdateResult::getModifiedCount()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBUpdateResult-getModifiedCount.md) - [MongoDB\\UpdateResult::getUpsertedCount()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBUpdateResult-getUpsertedCount.md) - [MongoDB\\UpdateResult::getUpsertedId()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBUpdateResult-getUpsertedId.md) - [MongoDB\\UpdateResult::isAcknowledged()](https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBUpdateResult-isAcknowledged.md) - [Release Notes](https://www.mongodb.com/docs/php-library/current/references/release-notes.md) - [Upgrade Library Versions](https://www.mongodb.com/docs/php-library/current/references/upgrade.md): Learn how to upgrade the MongoDB PHP Library and PHP extension, ensuring compatibility and addressing breaking changes. - [Run a Database Command](https://www.mongodb.com/docs/php-library/current/run-command.md) - [Secure Your Data](https://www.mongodb.com/docs/php-library/current/security.md): Learn how to secure your MongoDB data by using the MongoDB PHP library with authentication mechanisms, TLS configuration, and in-use encryption options. - [Authentication Mechanisms](https://www.mongodb.com/docs/php-library/current/security/authentication.md) - [AWS IAM Authentication](https://www.mongodb.com/docs/php-library/current/security/authentication/aws-iam.md) - [SCRAM Authentication](https://www.mongodb.com/docs/php-library/current/security/authentication/scram.md) - [X.509 Authentication](https://www.mongodb.com/docs/php-library/current/security/authentication/x509.md) - [In-Use Encryption](https://www.mongodb.com/docs/php-library/current/security/in-use-encryption.md) - [Configure Transport Layer Security (TLS)](https://www.mongodb.com/docs/php-library/current/security/tls.md) - [Tutorials](https://www.mongodb.com/docs/php-library/current/tutorial.md): Explore various tutorials for using the MongoDB PHP Library. - [Collation](https://www.mongodb.com/docs/php-library/current/tutorial/collation.md): Learn how to use collations to apply language-specific rules for string comparison in collections, indexes, and various operations with the MongoDB PHP Library. - [Execute Database Commands](https://www.mongodb.com/docs/php-library/current/tutorial/commands.md): Learn to execute database commands with the MongoDB PHP Library, including handling single and multiple result documents and setting custom read preferences. - [In-Use Encryption](https://www.mongodb.com/docs/php-library/current/tutorial/encryption.md): Learn how to implement in-use encryption in PHP projects with the MongoDB PHP Library, including managing encryption keys and configuring client-side field level encryption. - [Server Selection and Monitoring](https://www.mongodb.com/docs/php-library/current/tutorial/server-selection.md): Understand how the MongoDB PHP Library selects and monitors servers, including connection string options for server selection and monitoring. - [Run a MongoDB Vector Search Query](https://www.mongodb.com/docs/php-library/current/vector-search.md)