Skip to content

Instantly share code, notes, and snippets.

@concuria
concuria / boltS3.php
Created February 15, 2017 13:38 — forked from rossriley/boltS3.php
Adding an S3 filesystem for Bolt
<?php
use Aws\S3\S3Client;
use League\Flysystem\Filesystem;
use League\Flysystem\Adapter\AwsS3 as Adapter;
$client = S3Client::factory(array(
'key' => '[your key]',
'secret' => '[your secret]',
'region' => '[aws-region]'
));