jaimz22 / flysystem-gridfs

GridFS Adapter for Flysystem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

League\Flysystem\GridFS [BETA]

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 Aws\S3\S3Client;
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);

About

GridFS Adapter for Flysystem

License:MIT License


Languages

Language:PHP 100.0%