A simple JSON based key value store
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests/Unit
.coveralls.yml
.gitignore
.travis.yml
LICENSE
README.md
composer.json
phpunit.xml

README.md

JSON Key Value Store

Build Status Coverage Status StyleCI

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 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:

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'