lvht/kv

There is no license information available for the latest version (v1.0.0) of this package.

Maintainers

Details

github.com/lvht/php-kv

Source

Issues

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 1

pkg:composer/lvht/kv

v1.0.0 2017-06-17 04:42 UTC

This package is not auto-updated.

Last update: 2025-10-04 00:38:17 UTC


README

use sqlite as key-value store.

install

composer require lvht/kv

usage

<?php
$kv = \Lvht\Key\Key::new('path/to/file.db');
// $kv = \Lvht\Key\Key::new('path/to/file.db', 'text');

$kv->set('a', [1,2,3]);

var_dump($kv->get('a'));

The output is

array(3) {
  [0]=>
  int(1)
  [1]=>
  int(2)
  [2]=>
  int(3)
}