Docs Menu

Docs HomePHP Library Manual

MongoDB\Client Class

On this page

  • Definition
  • Methods

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 driver's MongoDB\Driver\Manager class, which it composes.

←  BSONMongoDB\Client::__construct() →

On this page