The following command is used to check the version of the installed extension: :~$ php --ri mongodb | grep version