vakata/kvstore
最新稳定版本:2.0.2
Composer 安装命令:
composer require vakata/kvstore
包简介
A simple key-value storage class
README 文档
README
A simple key-value storage class. used for configurations and extended in vakata/session.
Install
Via Composer
$ composer require vakata/kvstore
Usage
$config = new \vakata\kvstore\Storage([ 'sample' => [ 'data' => 1] ]); $config->get('sample.data', null, '.'); // 1 $config->set('sample.data', 2, '.'); // 2 $config->get('sample.data', null, '.'); // 2 $config->del('sample.data', '.'); // 2 $config->get('sample.data', null, '.'); // null $config->get('sample.data', 'default', '.'); // "default" $config->set('new.data.to.add', 2, '.'); // 2 $config->get('new.data', null, '.'); // [ 'to' => [ 'add' => 2 ] ]
Testing
$ composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email github@vakata.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 5.94k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-12-04