MongoDB\BSON
Classes
Class Binary
BSON type for the "DbPointer" type. This BSON type is deprecated, and this class can not be instantiated. It will be created from a BSON symbol type while converting BSON to PHP, and can also be converted back into BSON while storing documents in the database.
BSON type for the Decimal128 floating-point format, which supports numbers with up to 34 decimal digits (i.e. significant digits) and an exponent range of −6143 to +6144.
BSON type for a 64-bit integer.
Class Javascript
Class MaxKey
Class MinKey
Class ObjectId
Class Regex
BSON type for the "Symbol" type. This BSON type is deprecated, and this class can not be instantiated. It will be created from a BSON symbol type while converting BSON to PHP, and can also be converted back into BSON while storing documents in the database.
Represents a BSON timestamp, which is an internal MongoDB type not intended for general date storage.
Represents a BSON date.
BSON type for the "Undefined" type. This BSON type is deprecated, and this class can not be instantiated. It will be created from a BSON undefined type while converting BSON to PHP, and can also be converted back into BSON while storing documents in the database.
Interfaces
This interface is implemented by MongoDB\BSON\Binary but may also be used for type-hinting and userland classes.
This interface is implemented by MongoDB\BSON\Decimal128 but may also be used for type-hinting and userland classes.
Interface JavascriptInterface
This interface is implemented by MongoDB\BSON\MaxKey but may also be used for type-hinting and userland classes.
This interface is implemented by MongoDB\BSON\MinKey but may also be used for type-hinting and userland classes.
This interface is implemented by MongoDB\BSON\ObjectId but may also be used for type-hinting and userland classes.
Classes may implement this interface to take advantage of automatic ODM (object document mapping) behavior in the driver.
Classes that implement this interface may return data to be serialized as a BSON array or document in lieu of the object's public properties
Interface TimestampInterface
Interface Type
This interface is implemented by MongoDB\BSON\UTCDateTime but may also be used for type-hinting and userland classes.
Classes that implement this interface may be specified in a type map for unserializing BSON arrays and documents (both root and embedded).
Functions
deprecated
Returns the BSON representation of a JSON value Converts an extended JSON string to its BSON representation.
deprecated
Returns the BSON representation of a PHP value Serializes a PHP array or object (e.g. document) to its BSON representation. The returned binary string will describe a BSON document.
deprecated
Converts a BSON string to its Canonical Extended JSON representation.
deprecated
Returns the JSON representation of a BSON value Converts a BSON string to its extended JSON representation.
deprecated
Returns the PHP representation of a BSON value Unserializes a BSON document (i.e. binary string) to its PHP representation.
deprecated
Converts a BSON string to its » Relaxed Extended JSON representation.