定制 gyselroth/helper-storage 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

gyselroth/helper-storage

Composer 安装命令:

composer require gyselroth/helper-storage

包简介

PHP helper for S3-compatible storage

README 文档

README

PHP helper methods for storage services.

Features

  • Connect to S3 compatible storage service
  • List S3 buckets
  • Download files from S3 bucket
  • Upload files / objects to S3 bucket

Useage Example:

<?php 
 use Gyselroth\HelperStorage\S3c;
 
 $awsCredentials = [
      'endpoint'  => 'http://127.0.0.0:9000',  // using custom/local S3-service, e.g. minio 
      'accessKey' => '<YOUR_ACCESSKEY>',
      'secretKEY' => '<YOUR_SECRETKEY>',
      'region'    => '<REGION_CODE>'  
  ];
 
 // Download files from bucket
 S3c::downloadFilesFromBucket(
    array_merge($awsCredentials, ['bucketName' => 'myDownloadsBucket']),
    $pathDownloads,
    $deleteDownloadFilesFromBucket);
 
 // Upload objects to bucket
 S3c::uploadObjectsToBucket(
    array_merge($awsCredentials, ['bucketName' => 'myUploadsBucket']),
    [
        [
            'key'   => 'README.md',
            'body'  => 'hello world!'
        ]
    ]);
 

History

See CHANGELOG.md

Author and License

Copyright 2019 gyselroth™ (http://www.gyselroth.com)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0":http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

统计信息

  • 总下载量: 341
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2019-07-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固