This repository has been archived on 2026-07-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2017-05-24 18:35:30 -05:00

436 B
Executable File

layout, permalink, title
layout permalink title
default /adapter/gridfs/ GridFS Adapter

GridFS Adapter

Installation

composer require league/flysystem-gridfs

Usage

use League\Flysystem\GridFS\GridFSAdapter;
use League\Flysystem\Filesystem;

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

$adapter = new GridFSAdapter($gridFs);
$filesystem = new Filesystem($adapter);