Reputation: 185
Am searching for PHP framework which supports PHP7 and latest php mongo driver (https://github.com/mongodb/mongo-php-driver) using 1.1.8 (https://pecl.php.net/package/mongodb)
I tried with codeignitor and fatfree but they seems to support old one. Any help is appreciated.
Thanks, Zeeshan
Upvotes: 0
Views: 433
Reputation: 304
If you are using codeignitor then you can install library through composer (you need to install composer first if you dont have)
Then go to your project directory through command line and run the following command
composer require "mongodb/mongodb=^1.0.0
It will install mongodb library in your vendor folder of your project. Then you need to include following line where you want to use the library for eg you can include it on top of your controller or model.
require 'vendor/autoload.php';
Upvotes: 1