rikta / repository
A basic abstraction for a repository/data-storage.
Installs: 234
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
pkg:composer/rikta/repository
Requires
- php: ^7.4|^8.0
- ext-json: *
Requires (Dev)
README
A basic abstraction for a repository/data-storage.
Essentially get
,set
&delete
in one Interface that could use be any data-source.
Includes implementations for array-based & file-based (with & w/o caching) storage.
(mostly intended to be used alongside rikta/query
)
Installation
composer require rikta/repository
Usage
Take a look into ./tests/AbstractRepositoryTestCase.php until I have refined the Readme ;)