shinjin/freezer
Composer 安装命令:
composer require shinjin/freezer
包简介
A cool object storage library
README 文档
README
A cool object storage library.
Use freezer if you need:
- an easy way to store and fetch objects and object graphs
- a schemaless datastore with drivers for PDO, DoctrineCache, and CouchDB
Install
Via Composer
$ composer require shinjin/freezer
Usage
use Freezer\Storage\Pdo; $storage = new Pdo(array('driver' => 'sqlite')); $caveman = new class { public $name = 'Brendan'; public $nationality = 'Canadian'; }; $id = $storage->store($caveman); // wait 2 million years $caveman = $storage->fetch($id); print_r($caveman); // class@anonymous Object // ( // [name] => Brendan // [nationality] => Canadian // )
See Usage and Old README for the original writeup.
Change log
See CHANGELOG.
Testing
$ composer test
Contributing
Bugfixes are welcome. Please submit pull requests to Github.
Authors
License
The MIT License (MIT). Please see License File for more information.
Acknowledgements
Freezer is based on php-object-freezer by Sebastian Bergmann. Most of freezer's core and test code is his. Sebastian Bergmann is not affiliated with this project in any way, shape, or form.
统计信息
- 总下载量: 321
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-16