I entered the following commands on my command terminal in order to use the 'MongoClient' with PHP on XAMPP on my Macbook Pro:
- brew install wget
- brew install autoconf
- sudo /Applications/XAMPP/xamppfiles/bin/pecl install mongo
- Added extension=mongo.so to php.ini /Applications/XAMPP/xamppfiles/etc
- Restarted Apache
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
I'm getting kind of frustrated because I don't really know what else to try. Any advice?