title: How to Install PHP MongoDB Driver for XAMPP on OSX?
body: <p>I entered the following commands on my command terminal in order to use the 'MongoClient' with PHP on XAMPP on my Macbook Pro:</p>
  
  <ul>
  <li>brew install wget  </li>
  <li>brew install autoconf  </li>
  <li>sudo /Applications/XAMPP/xamppfiles/bin/pecl install mongo    </li>
  <li>Added extension=mongo.so to php.ini
  /Applications/XAMPP/xamppfiles/etc</li>
  <li>Restarted Apache</li>
  </ul>
  
  <p>However, I have had no luck. I keep getting this error: Fatal error: Class 'MongoClient' not found in /Applications/XAMPP/xamppfiles/htdocs/xampp/index.php on line 5</p>
  
  <p>I'm getting kind of frustrated because I don't really know what else to try. Any advice?</p>