PHP Classes

File: libraries/vendor/league/flysystem/docs/adapter/gridfs.md

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   PHP Slim Framework 3 Modular Application   libraries/vendor/league/flysystem/docs/adapter/gridfs.md   Download  
File: libraries/vendor/league/flysystem/docs/adapter/gridfs.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: PHP Slim Framework 3 Modular Application
Create modular applications using Slim Framework
Author: By
Last change:
Date: 7 years ago
Size: 436 bytes
 

Contents

Class file image Download

layout: default permalink: /adapter/gridfs/ title: 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);