title: cannot create MongoDb client object! [Class 'MongoDB\Client' not found]
body: <p>I'm on macOS sierra.
  I installed mongodb using brew and starting it using <code>$ mongod</code> command.
  Also, the mongo shell works fine without any luck!<br>
  The problem is when i'm using this code to create a connection:</p>
  
  <pre><code>$mongoClient = new MongoDB\Client();
  </code></pre>
  
  <p>same for </p>
  
  <pre><code> $mongoClient = new MongoClient();
  </code></pre>
  
  <p>I'm getting this error:</p>
  
  <pre><code>Fatal error: Uncaught Error: Class ... not found in ...
  </code></pre>
  
  <p>The fun point is when i'm trying to use mongo driver manager it works!</p>
  
  <pre><code>$manager = new MongoDB\Driver\Manager("mongodb://localhost:27017");
  </code></pre>
  
  <p>I'm sure that i have <code>extension=mongo.so</code> in my php.ini file and i checked phpinfo() and that shows Mongodb is loaded, i can'f find a solution for fixing it!
  whats the problem?</p>