Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

MongoDB Filesystem

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .notes
Octocat-spinner-32 example
Octocat-spinner-32 lib
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 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.

Features

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

Basics

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

Issues

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

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

Something went wrong with that request. Please try again.