PHP Classes
elePHPant
Icontem

PHP Emulated SQL Filesystem: Emulate a filesystem storing files in SQL database

Recommend this page to a friend!
  Info   View files Example   Demos   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2016-04-10 (6 months ago) RSS 2.0 feedStarStarStarStar 62%Total: 369 This week: 1All time: 6,452 This week: 1,047Up
Version License PHP version Categories
sqlefs 0.8.5MIT/X Consortium ...5.0PHP 5, Files and Folders, Emulators
Description Author

This class can emulate a file system storing files in a SQL database.

It can connect to a given database using PDO and performs several types of operations with names very similar to DOS and Linux to make it work like a file system. Currently it can:

- Set the name of the currently emulated disk
- Change the current directory to a given path
- List files of given path
- Fetch information of a file
- Fetch information of all files with a given path
- Get subdirectories of a given directory
- Change the current directory to the parent directory
- Read or write to a given file
- Remove a file or a directory
- Copy a file to another
- Check if a file exists
- Set or get the owner of a given file
- Write a file with a given uploaded file contents
- Serve a given file for download
- Load or save serialized data to a file
- Resolve the path of file with given parameters
- Create, list and describe disk volumes
- Format, check the status, defragment, and backup a disk

Innovation Award
PHP Programming Innovation award nominee
April 2016
Number 5
Many applications need to store and retrieve files that need to be accessible by a cluster of Web servers.

One solution for this problem, is to store files, at least not very large files, in databases.

This class emulates a file system on a SQL database. It provides all sorts of commands to manage files, directories and disk with similar names to those used in Linux and DOS.

Manuel Lemos
Picture of Ryan Cole
Name: Ryan Cole <contact>
Classes: 1 package by
Country: United States United States
Innovation award
Innovation award
Nominee: 1x

  ExamplesExternal page  
Screenshots  
  • fileman.png
  • console.png
  Files folder image Files  
File Role Description
Accessible without login Plain text file admin.php Example Admin page with file manager & console
Accessible without login Plain text file colorlog.php Example Example
Plain text file sqlefs.class.php Class SQLEFS Class File

 Version Control Unique User Downloads Download Rankings  
 0%
Total:369
This week:1
All time:6,452
This week:1,047Up
User Ratings User Comments (2)
 All time
Utility:90%StarStarStarStarStar
Consistency:90%StarStarStarStarStar
Documentation:-
Examples:85%StarStarStarStarStar
Tests:-
Videos:-
Overall:62%StarStarStarStar
Rank:926
 
Very interesting initial idea that generates a lot of other i...
6 months ago (Christian Vigh)
52%StarStarStar
thats a amazing class ;-)
6 months ago (José Filipe Lopes Santos)
70%StarStarStarStar