Unlike the [mongo](php7/book.mongo) extension, this
extension is developed atop the
» libmongoc and
» libbson libraries.
It provides a minimal API for core driver functionality:
[commands](php7/class.mongodb-driver-command),
[queries](php7/class.mongodb-driver-query),
[writes](php7/class.mongodb-driver-bulkwrite),
[connection management](php7/class.mongodb-driver-manager),
and [BSON serialization](php7/book.bson).
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.
安装/配置
需求
安装
运行时配置
预定义常量
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
MongoDBDriver — MongoDB 驱动类
MongoDBDriverManager — The MongoDBDriverManager class
MongoDBDriverCommand — The MongoDBDriverCommand class
MongoDBDriverQuery — The MongoDBDriverQuery class
MongoDBDriverBulkWrite — The MongoDBDriverBulkWrite class
MongoDBDriverWriteConcern — The MongoDBDriverWriteConcern class
MongoDBDriverReadPreference — The MongoDBDriverReadPreference class
MongoDBDriverReadConcern — The MongoDBDriverReadConcern class
MongoDBDriverCursor — The MongoDBDriverCursor class
MongoDBDriverCursorId — The MongoDBDriverCursorId class
MongoDBDriverServer — The MongoDBDriverServer class
MongoDBDriverWriteConcernError — The MongoDBDriverWriteConcernError class
MongoDBDriverWriteError — The MongoDBDriverWriteError class
MongoDBDriverWriteResult — The MongoDBDriverWriteResult class
MongoDBBSON — BSON type classes and serialization functions
函数
MongoDBBSONBinary — The MongoDBBSONBinary class
MongoDBBSONDecimal128 — The MongoDBBSONDecimal128 class
MongoDBBSONJavascript — The MongoDBBSONJavascript class
MongoDBBSONMaxKey — The MongoDBBSONMaxKey class
MongoDBBSONMinKey — The MongoDBBSONMinKey class
MongoDBBSONObjectId — The MongoDBBSONObjectId class
MongoDBBSONRegex — The MongoDBBSONRegex class
MongoDBBSONTimestamp — The MongoDBBSONTimestamp class
MongoDBBSONUTCDateTime — The MongoDBBSONUTCDateTime class
MongoDBBSONType — The MongoDBBSONType interface
MongoDBBSONPersistable — The MongoDBBSONPersistable interface
MongoDBBSONSerializable — The MongoDBBSONSerializable interface
MongoDBBSONUnserializable — The MongoDBBSONUnserializable interface
MongoDBBSONBinaryInterface — The MongoDBBSONBinaryInterface interface
MongoDBBSONDecimal128Interface — The MongoDBBSONDecimal128Interface interface
MongoDBBSONJavascriptInterface — The MongoDBBSONJavascriptInterface interface
MongoDBBSONMaxKeyInterface — The MongoDBBSONMaxKeyInterface interface
MongoDBBSONMinKeyInterface — The MongoDBBSONMinKeyInterface interface
MongoDBBSONObjectIdInterface — The MongoDBBSONObjectIdInterface interface
MongoDBBSONRegexInterface — The MongoDBBSONRegexInterface interface
MongoDBBSONTimestampInterface — The MongoDBBSONTimestampInterface interface
MongoDBBSONUTCDateTimeInterface — The MongoDBBSONUTCDateTimeInterface interface
MongoDBBSONDBPointer — The MongoDBBSONDBPointer class (deprecated)
MongoDBBSONInt64 — The MongoDBBSONInt64 class
MongoDBBSONSymbol — The MongoDBBSONSymbol class (deprecated)
MongoDBBSONUndefined — The MongoDBBSONUndefined class (deprecated)
MongoDBDriverMonitoring — Monitoring classes and subscriber functions
函数
MongoDBDriverMonitoringCommandFailedEvent — The MongoDBDriverMonitoringCommandFailedEvent class
MongoDBDriverMonitoringCommandStartedEvent — The MongoDBDriverMonitoringCommandStartedEvent class
MongoDBDriverMonitoringCommandSucceededEvent — The MongoDBDriverMonitoringCommandSucceededEvent class
MongoDBDriverMonitoringCommandSubscriber — The MongoDBDriverMonitoringCommandSubscriber interface
MongoDBDriverMonitoringSubscriber — The MongoDBDriverMonitoringSubscriber interface
MongoDBDriverException — Exception 类
MongoDBDriverExceptionAuthenticationException — The MongoDBDriverExceptionAuthenticationException class
MongoDBDriverExceptionBulkWriteException — The MongoDBDriverExceptionBulkWriteException class
MongoDBDriverExceptionConnectionException — The MongoDBDriverExceptionConnectionException class
MongoDBDriverExceptionConnectionTimeoutException — The MongoDBDriverExceptionConnectionTimeoutException class
MongoDBDriverExceptionException — The MongoDBDriverExceptionException interface
MongoDBDriverExceptionExecutionTimeoutException — The MongoDBDriverExceptionExecutionTimeoutException class
MongoDBDriverExceptionInvalidArgumentException — The MongoDBDriverExceptionInvalidArgumentException class
MongoDBDriverExceptionLogicException — The MongoDBDriverExceptionLogicException class
MongoDBDriverExceptionRuntimeException — The MongoDBDriverExceptionRuntimeException class
MongoDBDriverExceptionSSLConnectionException — The MongoDBDriverExceptionSSLConnectionException class (deprecated)
MongoDBDriverExceptionUnexpectedValueException — The MongoDBDriverExceptionUnexpectedValueException class
MongoDBDriverExceptionWriteException — The MongoDBDriverExceptionWriteException class