The PHP MongoDB extension provides <linklinkend="context">Stream Context Support</link>
using the <linklinkend="context.mongodb">mongodb</link> context.
</para>
<para>
A stream context must be created with <function>stream_context_create</function> and passed to the <methodname>MongoClient::__construct</methodname> before the actual connection to MongoDB is made.
It is not possible to apply a stream context to already created streams.
</para>
<para>
Additional context options and parameters, such as <linklinkend="context.ssl">ssl</link>
and <linklinkend="context.params">notification parameters</link>, are also supported.
</para>
<para>
The MongoDB context options provide a rich interface to log network traffic between the driver and the MongoDB servers.
This interface can be used to provide query logging, profiler, debuggers, or anything that would need to inspect the underlaying