=====================MongoDB\\Client Class=====================.. default-domain:: mongodb.. contents:: On this page :local: :backlinks: none :depth: 1 :class: singlecolDefinition----------.. phpclass:: MongoDB\\Client Serves as an entry point for the |php-library|. ``MongoDB\Client`` is the preferred class for connecting to a MongoDB server or cluster of servers and serves as a gateway for accessing individual databases and collections. ``MongoDB\Client`` is analogous to the driver's :php:`MongoDB\\Driver\\Manager <mongodb-driver-manager>` class, which it composes.Methods-------.. toctree:: :titlesonly: /reference/method/MongoDBClient__construct /reference/method/MongoDBClient__get /reference/method/MongoDBClient-dropDatabase /reference/method/MongoDBClient-listDatabases /reference/method/MongoDBClient-selectCollection /reference/method/MongoDBClient-selectDatabase