- Reference >
- MongoDB\Client Class
MongoDB\Client Class
On this page
Definition
-
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 driver’s MongoDB\Driver\Manager class, which it composes.
Methods
- MongoDB\Client::__construct()
- MongoDB\Client::__get()
- MongoDB\Client::dropDatabase()
- MongoDB\Client::getManager()
- MongoDB\Client::getReadConcern()
- MongoDB\Client::getReadPreference()
- MongoDB\Client::getTypeMap()
- MongoDB\Client::getWriteConcern()
- MongoDB\Client::listDatabases()
- MongoDB\Client::selectCollection()
- MongoDB\Client::selectDatabase()