2017 © Pedro Peláez
 

library mongodb-gridfs-wrapper

PHP stream wrapper for GridFS files in MongoDB

image

alcaeus/mongodb-gridfs-wrapper

PHP stream wrapper for GridFS files in MongoDB

  • Saturday, November 28, 2015
  • by alcaeus
  • Repository
  • 1 Watchers
  • 1 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

GridFS Stream Wrapper

Build Status, (*1)

This library provides a PHP stream wrapper for GridFS files in MongoDB. This allows you to access files in GridFS with accessible URLs:, (*2)

file_put_contents('gridfs://host/database-name/fs-prefix/path/to/file.txt', 'Hello world!');

The wrapper will accept directory separators in the path, but since there is no directory support in GridFS there won't be any real directories., (*3)

To use the stream wrapper, include this library in your composer dependencies:, (*4)

composer require alcaeus/mongodb-gridfs-wrapper:^1.0@dev

Then, in your bootstrap process, register the stream wrapper:, (*5)

Alcaeus\GridFs\StreamWrapper::register();

Caveats

  1. Stream options (blocking, timeouts, etc.) are not supported yet
  2. The wrapper currently only works for servers that don't require authentication.
  3. Directory iterators are not supported (yet)
  4. File locking is not supported (yet)
  5. When renaming files, database and bucket must remain the same (for now)

The Versions

28/11 2015

dev-master

9999999-dev

PHP stream wrapper for GridFS files in MongoDB

  Sources   Download

MIT

The Requires

  • php ^5.5
  • ext-mongo ^1.5

 

The Development Requires

mongodb database gridfs

28/11 2015

0.1.0

0.1.0.0

PHP stream wrapper for GridFS files in MongoDB

  Sources   Download

MIT

The Requires

  • php ^5.5
  • ext-mongo ^1.5

 

The Development Requires

mongodb database gridfs