承接 imbo/imbo-s3-adapters 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

imbo/imbo-s3-adapters

Composer 安装命令:

composer require imbo/imbo-s3-adapters

包简介

AWS S3 adapters for Imbo

关键字:

README 文档

README

AWS S3 storage adapters for Imbo.

Installation

composer require imbo/imbo-s3-adapters

Usage

This package provides two storage adapters for Imbo. One for the main images, and one for image variations.

use Imbo\Storage\S3 as MainStorage;
use Imbo\EventListener\ImageVariations\Storage\S3 as ImageVariationStorage;

$mainAdapter           = new MainStorage($keyId, $applicationKey, $bucketId, $bucketName);
$imageVariationAdapter = new ImageVariationStorage($keyId, $applicationKey, $bucketId, $bucketName);

Running integration tests

If you want to run the integration tests for this adapter you need to export the following environment variables:

  • S3_KEY
  • S3_SECRET
  • S3_BUCKET
  • S3_REGION

You will also need to copy phpunit.xml.dist to phpunit.xml and comment out or remove the part in the configuration that excludes the integration test group.

Warning: The integration tests will empty the specified bucket, so if you intend to run the integration tests you should create a dedicated bucket for this purpose.

License

MIT, see LICENSE.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-07-16