mongofilesystem icon indicating copy to clipboard operation
mongofilesystem copied to clipboard

MongoDB Filesystem

h1. Filesystem based on MongoDB GridFS

Mongofilesystem will help you use MongoDB GridFS like a typical filesystem, using the familiar PHP commands.

h2. Features

  • supports folder
  • temporary files for more performance
  • auto versioning for files

h2. Basics

Example snippet:

$fs = new MongoFs(&$db);
$fs->import($name, $file);

h2. Implemented commands

  • etag
  • mimetype
  • filemtime
  • filesize
  • is_file
  • file_exists
  • readfile
  • file_get_contents
  • file_put_contents
  • import
  • rename
  • unlink
  • scandir
  • rmdir
  • dirname
  • mkdir
  • is_dir

h2. Issues

Have a bug? Please create an issue here on GitHub!

"https://github.com/harrydeluxe/mongofilesystem/issues":https://github.com/harrydeluxe/mongofilesystem/issues