Hello, I'm trying to use MongoDB with FuelPHP. When checking php setting with phpinfo, every things look good (Mongo extension is enable) However when trying
$mongodb = \Mongo_Db::instance();
Exception: The MongoDB PECL extension has not been installed or enabled appears.
I'm using newest Fuel 1.8 and php 7.0.9 Any idea with this?
There are two PHP exensions for Mongo, the "mongo" PECL extension (which is now deprecated) and the new "mongodb" extension.
Fuel uses the older extension, and I assume you have the new one installed, which is not supported at the moment. It has a completely different API, so using it requires rewriting the Mongo_Db class.