earc / data-filesystem
eArc - the explicit architecture framework - data filesystem component
Installs: 29
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/earc/data-filesystem
Requires
- php: ^8.0
- earc/data: ^0.0
Requires (Dev)
This package is auto-updated.
Last update: 2025-10-29 02:44:14 UTC
README
Filesystem bridge providing a basic entity database/value-store/backup-system for the earc/data abstraction.
installation
Install the earc/data-filesystem library via composer.
$ composer require earc/data-filesystem
basic usage
Initialize the earc/data abstraction in your index.php, bootstrap or configuration script.
use eArc\Data\Initializer; Initializer::init();
Then register the earc/data-filesystem bridge to the earc/data onLoad,
onPersit, onRemove and onFind events and set the data path for your filesystem.
use eArc\Data\ParameterInterface; use eArc\DataFilesystem\FilesystemDataBridge; di_tag(ParameterInterface::TAG_ON_LOAD, FilesystemDataBridge::class); di_tag(ParameterInterface::TAG_ON_PERSIST, FilesystemDataBridge::class); di_tag(ParameterInterface::TAG_ON_REMOVE, FilesystemDataBridge::class); di_tag(ParameterInterface::TAG_ON_FIND, FilesystemDataBridge::class); di_set_param(\eArc\DataFilesystem\ParameterInterface::DATA_PATH, '/path/to/save/the/entity/data');
Hint: The first ParameterInterface belongs to earc/data library the second to
earc/data-filesystem bridge.
Now earc/data uses your filesystem to save the data of your entities.
releases
release 0.0
- the first official release
- PHP ^8.0