PHP code example of kumatch / keystore-s3

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

    

kumatch / keystore-s3 example snippets


use Kumatch\KeyStore\S3\Driver;
use Kumatch\KeyStore\S3\AwsRegion; // AwsRegion extends Aws\Common\Enum\Region (aws-sdk)

$config = array(
    "key" => "aws_key",
    "secret" => "aws_secret",
    "region" => AwsRegion::US_WEST_1,
);
$bucket = "mybucket";

$driver = new Driver($config, $bucket);