1. Go to this page and download the library: Download wieni/flysystem_s3 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/ */
wieni / flysystem_s3 example snippets
$schemes = [
's3' => [
'driver' => 's3',
'config' => [
'key' => '[your key]', // 'key' and 'secret' do not need to be
'secret' => '[your secret]', // provided if using IAM roles.
'region' => '[aws-region-id]',
'bucket' => '[bucket-name]',
// Optional configuration settings.
// 'options' => [
// 'ACL' => 'public-read',
// 'StorageClass' => 'REDUCED_REDUNDANCY',
// ],
// 'protocol' => 'https', // Autodetected based on the
// current request if not
// provided.
// 'prefix' => 'an/optional/prefix', // Directory prefix for all
// uploaded/viewed files.
// 'cname' => 'static.example.com', // A CNAME that resolves to
// your bucket. Used for URL
// generation.
// 'cname_is_bucket' => TRUE, // Set to FALSE if the CNAME
// does not resolve to a
// bucket and the bucuket
// should be
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.