League\Flysystem\AwsS3v3

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

  • Owner: thephpleague/flysystem-aws-s3-v3
  • Platform: Linux, Mac, Windows
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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);

Main metrics

Overview
Name With Ownerthephpleague/flysystem-aws-s3-v3
Primary LanguagePHP
Program languagePHP (Language Count: 1)
PlatformLinux, Mac, Windows
License:MIT License
所有者活动
Created At2014-11-10 21:23:13
Pushed At2024-10-08 09:10:48
Last Commit At2022-07-02 15:51:38
Release Count82
Last Release Name3.29.0 (Posted on 2024-09-29 12:10:37)
First Release Name1.0.0 (Posted on )
用户参与
Stargazers Count1.6k
Watchers Count26
Fork Count226
Commits Count139
Has Issues Enabled
Issues Count0
Issue Open Count0
Pull Requests Count53
Pull Requests Open Count2
Pull Requests Close Count54
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private