league/flysystem-gridfs

This package is abandoned and no longer maintained. No replacement package was suggested.

Flysystem adapter for MongoDB GridFS

1.0.0 2015-01-21 22:20 UTC

This package is auto-updated.

Last update: 2024-02-06 07:22:19 UTC


README

Author Build Status Coverage Status Quality Score Software License Packagist Version Total Downloads

This is a Flysystem adapter for the MongoDB's GridFS.

Installation

composer require league/flysystem-gridfs

Bootstrap

<?php
use League\Flysystem\GridFS\GridFSAdapter;
use League\Flysystem\Filesystem;

include __DIR__ . '/vendor/autoload.php';

$mongoClient = new MongoClient();
$gridFs = $mongoClient->selectDB('db_name')->getGridFS();

$adapter = new GridFSAdapter($gridFs);