League\Flysystem\AwsS3v3

适用于 AWS SDK V3 的 Flysystem 适配器。「Flysystem Adapter for AWS SDK V3」

  • 所有者: thephpleague/flysystem-aws-s3-v3
  • 平台: Linux, Mac, Windows
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

League\Flysystem\AwsS3V3

Author
Build Status
Coverage Status
Quality Score
Software License
Packagist Version
Total Downloads

This is a Flysystem adapter for the aws-sdk-php v3.

Installation

composer require league/flysystem-aws-s3-v3

Bootstrap

Using standard Aws\S3\S3Client:

<?php
use Aws\S3\S3Client;
use League\Flysystem\AwsS3V3\AwsS3V3Adapter;
use League\Flysystem\Filesystem;

include __DIR__ . '/vendor/autoload.php';

$client = new S3Client([
    'credentials' => [
        'key'    => 'your-key',
        'secret' => 'your-secret'
    ],
    'region' => 'your-region',
    'version' => 'latest|version',
]);

$adapter = new AwsS3V3Adapter($client, 'your-bucket-name');
$filesystem = new Filesystem($adapter);

or using Aws\S3\S3MultiRegionClient which does not require to specify the region parameter:

<?php
use Aws\S3\S3MultiRegionClient;
use League\Flysystem\AwsS3V3\AwsS3V3Adapter;
use League\Flysystem\Filesystem;

include __DIR__ . '/vendor/autoload.php';

$client = new S3MultiRegionClient([
    'credentials' => [
        'key'    => 'your-key',
        'secret' => 'your-secret'
    ],
    'version' => 'latest|version',
]);

$adapter = new AwsS3V3Adapter($client, 'your-bucket-name');
$filesystem = new Filesystem($adapter);

主要指标

概览
名称与所有者thephpleague/flysystem-aws-s3-v3
主编程语言PHP
编程语言PHP (语言数: 1)
平台Linux, Mac, Windows
许可证MIT License
所有者活动
创建于2014-11-10 21:23:13
推送于2024-10-08 09:10:48
最后一次提交2022-07-02 15:51:38
发布数82
最新版本名称3.29.0 (发布于 2024-09-29 12:10:37)
第一版名称1.0.0 (发布于 )
用户参与
星数1.6k
关注者数26
派生数226
提交数139
已启用问题?
问题数0
打开的问题数0
拉请求数53
打开的拉请求数2
关闭的拉请求数54
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?