PHP code example of quioteframework / filesystem-s3

1. Go to this page and download the library: Download quioteframework/filesystem-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/ */

    

quioteframework / filesystem-s3 example snippets


$client = new \Quiote\Storage\S3\S3Client(
    httpClient: $psr18Client,
    region: 'eu-west-1',
    accessKeyId: getenv('AWS_ACCESS_KEY_ID'),
    secretAccessKey: getenv('AWS_SECRET_ACCESS_KEY'),
    bucket: 'my-app-files',
);

$adapter = new \Quiote\Filesystem\S3\S3FilesystemAdapter($client);
$adapter->write('reports/q1.csv', $csv);
$adapter->read('reports/q1.csv');