Download the PHP package darkotodoric/efficient-file-management without Composer
On this page you can find all versions of the php package darkotodoric/efficient-file-management. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download darkotodoric/efficient-file-management
More information about darkotodoric/efficient-file-management
Files in darkotodoric/efficient-file-management
Package efficient-file-management
Short Description PHP-based file management system designed for seamless storage and retrieval of large volumes of files with optimal performance
License MIT
Homepage https://github.com/darkotodoric/efficient-file-management
Informations about the package efficient-file-management
Efficient File Management
The EfficientFileManagement class is a highly efficient PHP solution for managing and storing an extensive number of
files, potentially in the order of billions, while maintaining exceptional performance. It achieves this scalability by
organizing files into a hierarchical folder structure based on unique IDs (from database or any other source) and file
extensions.
Installation
Install the latest version with:
Usage
Folder and file structures
Here's an example of how the folder structure and files might look when using the EfficientFileManagement class to
store files
with IDs and extensions:
Suppose we have the following files:
- File with ID
123456,987654,555555and extensionjson - File with ID
987654and extensionxml - File with ID
555555and extensiontxt
The resulting folder structure might look like this:
In this structure:
- Files with the
.jsonextension are stored in thejsonfolder. - Files with the
.xmlextension are stored in thexmlfolder. - Files with the
.txtextension are stored in thetxtfolder. - Each folder is further organized into subfolders based on the integer division of the file's ID by 50000. This hierarchical organization ensures that even with a vast number of files, the system remains efficient and easily manageable.
Contributing
Contributions are welcome! Feel free to open issues or submit pull requests to improve this project.