Skip to content

Instantly share code, notes, and snippets.

@keithweaver
keithweaver / open-private-s3-file.php
Last active May 29, 2023 11:05
Open AWS S3 File Privately with PHP
<?php
$BUCKET_NAME = '';
$IAM_KEY = '';
$IAM_SECRET = '';
require '/vendor/autoload.php';
use Aws\S3\S3Client;
use Aws\S3\Exception\S3Exception;
// Get the access code