treehouselabs/swift-client
Composer 安装命令:
composer require treehouselabs/swift-client
包简介
Client for the Swift object store protocol
README 文档
README
Installation
composer require treehouselabs/swift-client:~1.0
Usage
// use `treehouselabs/keystone-client` to initialize a Guzzle Client that can // communicate with Keystone-authenticated services $driver = new SwiftDriver($keystoneClient); $store = new ObjectStore($driver); // create a new container and object $container = $store->createContainer('foo'); $object = $store->createObject($container, 'bar'); // set a local file to the object $object->setLocalFile($file); // update the object in the store $store->updateObject($object); // ... // get the stored container/object $container = $store->getContainer('foo'); $object = $container->getObject('bar); // get the contents $store->getObjectContent($object);
Testing
composer test
Security
If you discover any security related issues, please email peter@treehouse.nl instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
Credits
统计信息
- 总下载量: 5.29k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-05-21