<?php

use Aws\S3\S3Client;

    require '../aws/aws-autoloader.php';
    // /Applications/MAMP/htdocs/myportal/aws3/vendor/autoload.php
    $config = [
        's3' => [
            'key' => 'AKIAQXVQPATNB6YOTWPX',
            'secret' => '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',
            'bucket' => 'briateksms',  
        ]
    ];

    //S3
    // $s3 = S3Client::factory([
    //     'key' => $config['s3']['key'],
    //     'secret' => $config['s3']['secret'],
    //     'region'      => 'eu-west-2',
    // ]); 

    $s3 = new S3Client([
        'version' => 'latest',
        'region'  => 'eu-west-2',
        'credentials' => [
            'key'    => $config['s3']['key'],
            'secret' => $config['s3']['secret'],
        ],
    ]);

?>