The MongoDB PHP extension (which we will refer to simply as ext/mongodb for brevity) contains four main classes. Each class has its own PHP namespace. So, for example, if you wish to create an instance of the MongoDB\Driver\Command class, you would need to proceed as follows:
<?php namespace Application; use MongoDB\Driver\Command; $command = new Command();
The main classes we will cover in this section are MongoDB\Driver, MongoDB\BSON, MongoDB\Driver\Monitoring, and MongoDB\Driver\Exception.