I followed this commands.
$ sudo pecl install mongodb
$ composer require jenssegers/mongodb
use MongoDB\Client AS Mongo;
$mongo = new Mongo();
I am using NGNIX and ubuntu 20. In localhost it is working but in server it is not. In localhost I am using apache2 and in server there ngnix.
Kindly let me know what I am doing wrong. Thanks is advance!