Download the PHP package petrknap/php-splitfilesystem without Composer
On this page you can find all versions of the php package petrknap/php-splitfilesystem. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download petrknap/php-splitfilesystem
More information about petrknap/php-splitfilesystem
Files in petrknap/php-splitfilesystem
Package php-splitfilesystem
Short Description Split Filesystem for PHP
License MIT
Homepage https://petrknap.github.io/docs/php-splitfilesystem.html
Informations about the package php-splitfilesystem
Split Filesystem for PHP
- About resolved issue
- Advantages
- Disadvantages
- Usage of php-splitfilesystem
- Standard usage
- How to install
About resolved issue
I need to use something where around 60,000 files with average size of 30kb are stored in a single directory (this is a requirement so can't simply break into sub-directories with smaller number of files).
The files will be accessed randomly, but once created there will be no writes to the same filesystem. I'm currently using Ext3 but finding it very slow. Any suggestions?
-- Filesystem large number of files in a single directory - bugmenot77, voretaq7
This file storage solves this issue simply - it creates virtual layer between file system and application. Every path is converted into path which is composed from many directories which contains only small amount of sub-directories.
If you wish to store 1 000 000 files in single directory, this file storage converts paths and stores them in tree-structure. Every directory contains only small amount of directories and files (depends on configuration).
Advantages
- Can store a huge amount of files in single directory
- Naturally protects files outside the storage
- Every user can has separated and isolated file storage
- Fully compatible and based on League\Flysystem
Disadvantages
- Real file structure is not user-friendly
Usage of php-splitfilesystem
Standard usage
How to install
Run composer require petrknap/php-splitfilesystem
or merge this JSON code with your project composer.json
file manually and run composer install
. Instead of dev-master
you can use one of released versions.
Or manually clone this repository via git clone https://github.com/petrknap/php-splitfilesystem.git
or download this repository as ZIP and extract files into your project.