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 (3 years ago) RSS 2.0 feedStarStarStarStar 62%Total: 399 All time: 6,422 This week: 430Up
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
Name: Ryan Cole <contact>
Classes: 1 package by
Country: United States United States
Age: ???
All time rank: 3427405 in United States United States
Week rank: 666 Up67 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

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:399
This week:0
All time:6,422
This week:430Up
User Ratings User Comments (2)
 All time
Utility:90%StarStarStarStarStar
Consistency:90%StarStarStarStarStar
Documentation:-
Examples:85%StarStarStarStarStar
Tests:-
Videos:-
Overall:62%StarStarStarStar
Rank:1078
 
Very interesting initial idea that generates a lot of other i...
3 years ago (Christian Vigh)
52%StarStarStar
thats a amazing class ;-)
3 years ago (Josť Filipe Lopes Santos)
70%StarStarStarStar