# MongoDB driver

Unlike the mongo extension, this extension is developed atop the » libmongoc and » libbson libraries. It provides a minimal API for core driver functionality: commands, queries, writes, connection management, and BSON serialization.

Userland PHP libraries that depend on this extension may provide higher level APIs, such as query builders, individual command helper methods, and GridFS. Application developers should consider using this extension in conjunction with the » MongoDB PHP library, which implements the same higher level APIs found in MongoDB drivers for other languages. This separation of concerns allows the driver to focus on essential features for which an extension implementation is paramount for performance.

- Installation/Configuration
  - Pré-requis
  - Installation
  - Configuration à l'exécution
  - Constantes pré-définies
- Tutorials
  - Using the PHP Library for MongoDB (PHPLIB)
  - Application Performance Monitoring (APM)
- Driver Architecture and Internals — Explains the driver architecure, and special features
  - Architecture — Architecture Overview
  - Connections — Connection handling and persistence
  - Persisting Data — Serialization and deserialization of PHP variables into MongoDB
- Security
  - Request Injection Attacks
  - Script Injection Attacks
- MongoDB\Driver — MongoDB driver classes
  - MongoDB\Driver\Manager — The MongoDB\Driver\Manager class
  - MongoDB\Driver\Command — The MongoDB\Driver\Command class
  - MongoDB\Driver\Query — La classe MongoDB\Driver\Query
  - MongoDB\Driver\BulkWrite — The MongoDB\Driver\BulkWrite class
  - MongoDB\Driver\Session — The MongoDB\Driver\Session class
  - MongoDB\Driver\WriteConcern — La classe MongoDB\Driver\WriteConcern
  - MongoDB\Driver\ReadPreference — La classe MongoDB\Driver\ReadPreference
  - MongoDB\Driver\ReadConcern — The MongoDB\Driver\ReadConcern class
  - MongoDB\Driver\Cursor — La classe MongoDB\Driver\Cursor
  - MongoDB\Driver\CursorId — La classe MongoDB\Driver\CursorId
  - MongoDB\Driver\Server — La classe MongoDB\Driver\Server
  - MongoDB\Driver\WriteConcernError — La classe MongoDB\Driver\WriteConcernError
  - MongoDB\Driver\WriteError — La classe MongoDB\Driver\WriteError
  - MongoDB\Driver\WriteResult — La classe MongoDB\Driver\WriteResult
- MongoDB\BSON — Classes de types BSON et fonctions de sérialisation
  - Fonctions
  - MongoDB\BSON\Binary — La classe MongoDB\BSON\Binary
  - MongoDB\BSON\Decimal128 — The MongoDB\BSON\Decimal128 class
  - MongoDB\BSON\Javascript — La classe MongoDB\BSON\Javascript
  - MongoDB\BSON\MaxKey — La classe MongoDB\BSON\MaxKey
  - MongoDB\BSON\MinKey — La classe MongoDB\BSON\MinKey
  - MongoDB\BSON\ObjectId — The MongoDB\BSON\ObjectId class
  - MongoDB\BSON\Regex — La classe MongoDB\BSON\Regex
  - MongoDB\BSON\Timestamp — La classe MongoDB\BSON\Timestamp
  - MongoDB\BSON\UTCDatetime — La classe MongoDB\BSON\UTCDatetime
  - MongoDB\BSON\Type — L'interface MongoDB\BSON\Type
  - MongoDB\BSON\Persistable — La classe MongoDB\BSON\Persistable
  - MongoDB\BSON\Serializable — La classe MongoDB\BSON\Serializable
  - MongoDB\BSON\Unserializable — L'interface MongoDB\BSON\Unserializable
  - MongoDB\BSON\BinaryInterface — The MongoDB\BSON\BinaryInterface interface
  - MongoDB\BSON\Decimal128Interface — The MongoDB\BSON\Decimal128Interface interface
  - MongoDB\BSON\JavascriptInterface — The MongoDB\BSON\JavascriptInterface interface
  - MongoDB\BSON\MaxKeyInterface — The MongoDB\BSON\MaxKeyInterface interface
  - MongoDB\BSON\MinKeyInterface — The MongoDB\BSON\MinKeyInterface interface
  - MongoDB\BSON\ObjectIdInterface — The MongoDB\BSON\ObjectIdInterface interface
  - MongoDB\BSON\RegexInterface — The MongoDB\BSON\RegexInterface interface
  - MongoDB\BSON\TimestampInterface — The MongoDB\BSON\TimestampInterface interface
  - MongoDB\BSON\UTCDateTimeInterface — The MongoDB\BSON\UTCDateTimeInterface interface
  - MongoDB\BSON\DBPointer — The MongoDB\BSON\DBPointer class (deprecated)
  - MongoDB\BSON\Int64 — The MongoDB\BSON\Int64 class
  - MongoDB\BSON\Symbol — The MongoDB\BSON\Symbol class (deprecated)
  - MongoDB\BSON\Undefined — The MongoDB\BSON\Undefined class (deprecated)
- MongoDB\Driver\Monitoring — Monitoring classes and subscriber functions
  - Fonctions
  - MongoDB\Driver\Monitoring\CommandFailedEvent — The MongoDB\Driver\Monitoring\CommandFailedEvent class
  - MongoDB\Driver\Monitoring\CommandStartedEvent — The MongoDB\Driver\Monitoring\CommandStartedEvent class
  - MongoDB\Driver\Monitoring\CommandSucceededEvent — The MongoDB\Driver\Monitoring\CommandSucceededEvent class
  - MongoDB\Driver\Monitoring\CommandSubscriber — The MongoDB\Driver\Monitoring\CommandSubscriber interface
  - MongoDB\Driver\Monitoring\Subscriber — The MongoDB\Driver\Monitoring\Subscriber interface
- MongoDB\Driver\Exception — Exception classes
  - MongoDB\Driver\Exception\AuthenticationException — La classe MongoDB\Driver\Exception\AuthenticationException
  - MongoDB\Driver\Exception\BulkWriteException — La classe MongoDB\Driver\Exception\BulkWriteException
  - MongoDB\Driver\Exception\CommandException — The MongoDB\Driver\Exception\CommandException class
  - MongoDB\Driver\Exception\ConnectionException — La classe MongoDB\Driver\Exception\ConnectionException
  - MongoDB\Driver\Exception\ConnectionTimeoutException — The MongoDB\Driver\Exception\ConnectionTimeoutException class
  - MongoDB\Driver\Exception\Exception — La classe MongoDB\Driver\Exception\Exception
  - MongoDB\Driver\Exception\ExecutionTimeoutException — The MongoDB\Driver\Exception\ExecutionTimeoutException class
  - MongoDB\Driver\Exception\InvalidArgumentException — La classe MongoDB\Driver\Exception\InvalidArgumentException
  - MongoDB\Driver\Exception\LogicException — The MongoDB\Driver\Exception\LogicException class
  - MongoDB\Driver\Exception\RuntimeException — La classe MongoDB\Driver\Exception\RuntimeException
  - MongoDB\Driver\Exception\ServerException — The MongoDB\Driver\Exception\ServerException class
  - MongoDB\Driver\Exception\SSLConnectionException — La classe MongoDB\Driver\Exception\SSLConnectionException
  - MongoDB\Driver\Exception\UnexpectedValueException — The MongoDB\Driver\Exception\UnexpectedValueException class
  - MongoDB\Driver\Exception\WriteException — La classe MongoDB\Driver\Exception\WriteException
  - Class Tree — MongoDB Exception Class Tree