https://github.com/divineomega/json-key-value-store
A simple JSON based key value store
https://github.com/divineomega/json-key-value-store
json key-value key-value-store php php-library store
Last synced: over 1 year ago
JSON representation
A simple JSON based key value store
- Host: GitHub
- URL: https://github.com/divineomega/json-key-value-store
- Owner: DivineOmega
- License: gpl-3.0
- Created: 2018-05-04T22:40:35.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-24T14:15:36.000Z (about 6 years ago)
- Last Synced: 2025-02-28T06:04:22.957Z (over 1 year ago)
- Topics: json, key-value, key-value-store, php, php-library, store
- Language: PHP
- Size: 23.4 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JSON Key Value Store
[](https://travis-ci.org/DivineOmega/json-key-value-store)
[](https://coveralls.io/github/DivineOmega/json-key-value-store?branch=master)
[](https://styleci.io/repos/132195531)
A simple JSON based key value store.
## Installation
This JSON Key Value Store package can be easily installed using Composer. Just run the following command from the root of your project.
```
composer require divineomega/json-key-value-store
```
If you have never used the Composer dependency manager before, head to the [Composer website](https://getcomposer.org/) for more information on how to get started.
## Usage
Using the JSON Key Value Store is designed to be super simple.
Here is a basic usage example:
```php
use DivineOmega\JsonKeyValueStore\JsonKeyValueStore;
$store = new JsonKeyValueStore('store.json.gz');
$store->set('key1', 'value123');
$store->set('key2', 'value456');
$store->delete('key2');
$value = $store->get('key1');
// $value = 'value123'
```