kdaviesnz/bucketlist 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-11-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固