GridFS
Prerequisites
In order to use GridFS adapter, you should have accesible MongoDB instance, MongoDB PHP driver and
the mongodb/mongodb
library installed.
First can install the MongoDB extension with:
pecl install mongodb
Then, install the adapter:
composer require gaufrette/gridfs-adapter
Usage
$client = new \MongoDB\Client('mongodb://localhost:27017');
$db = $client->selectDatabase('dbname');
$adapter = new \Gaufrette\Adapter\GridFS($db->selectGridFSBucket());