I am trying to make use of mongodb
in a LAMP setup in my machine. The tech specs I have been using are:
OS: Linux(Ubuntu-16.04LTS)
PHP Version: PHP 7.0.33-0ubuntu0.16.04.2
mongo version: Percona Server for MongoDB shell version v3.4.18-2.16
PHP Framework: CodeIgnitor-3.1.10
Following are the things I tried:
- I used this library to connect mongo database but did not work well.
- I used the code method as described in this thread.
Whenever I tried this file as library and configured to autoload the library then I encountered this issue:
Class 'MongoClient' not found.