PHP code example of rene-roscher / flysystem-aws-s3-v3-minio

1. Go to this page and download the library: Download rene-roscher/flysystem-aws-s3-v3-minio library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

rene-roscher / flysystem-aws-s3-v3-minio example snippets

 php

use Aws\S3\S3Client;
use League\Flysystem\AwsS3v3\AwsS3Adapter;
use League\Flysystem\Filesystem;

secret'
    ],
    'region' => 'your-region',
    'version' => 'latest|version',
]);

$options = [
        'override_visibility_on_copy' => true
    ];
$adapter = new AwsS3Adapter($client, 'your-bucket-name', '', $options);
$filesystem = new Filesystem($adapter);