phpolar / phpolar-storage
This package is abandoned and no longer maintained.
The author suggests using the phpolar/storage package instead.
A convenient tool to speed up the creation of data storage for application development.
2.0.0
2023-09-02 23:34 UTC
Requires
- php: >=8.1
Requires (Dev)
- ext-ast: *
- ext-openssl: *
- phan/phan: ^5.4
- php-coveralls/php-coveralls: ^2.5
- phpmd/phpmd: ^2.13
- phpstan/phpstan: ^1.9
- phpunit/phpunit: ^10.0
- squizlabs/php_codesniffer: ^3.7
README
PHPolar Data Storage Abstraction
Use to create persistence layer repositories, services, etc. with improved type safety.
Usage
class KafkaStorage extends AbstractStorage { public function __construct( // ... ) { parent::__construct(); // ... } // ... } $key0 = new ItemKey(uniqid()); $kafkaStorage->storeByKey($key0, $data); $item0 = $kafkaStorage->getByKey($key0); $numItems = $kafkaStorage->count(); $allItems = $kafkaStorage->getAll(); $kafka->removeByKey($key0); $kafka->clear();