littlevale / filestore
Manage a logical file store, giving each file a unique name. Methods to add, retrieve & delete files. Mapping original name to unique FileStore name is responsibilty of calling software
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/littlevale/filestore
Requires
- php: >=8.2
This package is auto-updated.
Last update: 2026-01-15 03:00:14 UTC
README
Manage a logical file store.
Files are stored in a tree structure derived from a random filename created at insertion time.
Provide methods to
- insert from string, array or uploaded file, and return unique filename;
- delete by file store filename;
- retrieve to string;
- retrieve to output.
Unique filenames ensure that loaded filenames don't clash. It is the responsibility of the hosting software to map the original filename to the unique filename returned by FileStore.
To do:
- block delete from an array of names.
- reconcile against a list of filenames to identify orphan files that can be removed
- reconcile against a list of filenames to identify absent files.