Skip to content
MongoDB Filesystem
Find file
Latest commit 5032132 @harrydeluxe Add copy functionality
Failed to load latest commit information.
.notes + ‘.notes/’
example/dav set php_value
lib Add copy functionality
LICENSE.txt add license
README.textile / ‘README.textile’


Filesystem based on MongoDB GridFS

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


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


Example snippet:

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

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


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

Something went wrong with that request. Please try again.