Docs Menu
Docs Home
/ / /
PHP Library Manual
/

MongoDB\Client Class

On this page

  • Definition
  • Methods
MongoDB\Client

This class serves as an entry point for the MongoDB PHP Library. It is the preferred class for connecting to a MongoDB server or cluster of servers and acts as a gateway for accessing individual databases and collections. MongoDB\Client is analogous to the extension's MongoDB\Driver\Manager class, which it composes.

Back

BSON

On this page