kdaviesnz/bucketlist
Composer 安装命令:
composer require kdaviesnz/bucketlist
包简介
Read AWS S3 buckets
关键字:
README 文档
README
Install
Via Composer
$ composer require kdaviesnz/bucketlist
Usage
$region = '*******'; // eg 'ap-southeast-2' $key = '*******'; // your amazon credential key $secret = '********'; // your amazon credential secret. $bucketlist = new \kdaviesnz\bucketlist\Bucketlist($region, $key, $secret); // Fetch buckets $result = $bucketlist->fetch(''); // Fetch buckets using a filter $filter = function(array $objects) { return array_filter( $objects, function($object) { return $object['Name'][0] == "a"; } ); }; $result = $bucketlist->fetch('', $filter); // Fetch objects from a bucket $result = $bucketlist->fetch("yourbucketname"); // Fetch objects from a bucket using a filter $filter = function(array $objects) { return $movies = array_filter( $objects, function($object){ $temp = explode(".", trim($object['Key'])); return $temp[count($temp)-1] == "mp4"; }); }; $result = $bucketlist->fetch("yourbucketname", $filter);
Change log
Please see CHANGELOG.md for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING.md and CODE_OF_CONDUCT.md for details.
Security
If you discover any security related issues, please email kdaviesnz@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see LICENSE.md for more information.
bucketlist
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-01