title: How to connect php7 with mongoDB
body: <p>I'm trying to connect PHP 7 with mongoDB, I installed the "new" MongoDB driver using pecl by following this <a href="https://mongodb.github.io/mongo-php-driver/" rel="nofollow">page</a> instructions. I can see MongoDB version 1.1.8 from <code>phpInfo()</code> output, but I can't figure out how to initiate a connection from PHP code :p . the following code includes my attempts to connect (tried to connect even using old fashion way)</p>
  
  <pre><code>// new fashion way
  $connection = new MongoDB\Driver\Client();
  
  // or by using old fashion way
  $conn = new MongoClient();
  
  // random try :p
  $randConn = new MongoDB\Client();
  </code></pre>
  
  <p>and in both cases, I'm getting not defined class exception.
  please let me know what I'm missing and where is my mistake, please provide and example to be easier to follow if possible ;) .</p>
  
  <p>PS: used operating system is ubuntu 14.04 LTS.</p>
  
  <hr>
  
  <p>thanks in advance.</p>