$client = S3Client::factory([
'key' => 'your-key',
'secret' => 'your-secret',
]);
!
$s3 = new AwsS3Adapter($client, 'your-bucket');
$cache = new Local('path/to/cache');
!
$server = ServerFactory::create([
'source' => new Filesystem($s3),
'cache' => new Filesystem($cache),
]);