PHP code example of cjrasmussen / aws-helper
1. Go to this page and download the library: Download cjrasmussen/aws-helper 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/ */
cjrasmussen / aws-helper example snippets
use cjrasmussen\AwsHelper\Aws;
$aws = new Aws($s3client, $ec2client);
// BATCH DELETE A SINGLE S3 OBJECT OR AN ARRAY OF S3 OBJECTS BY KEY
$response = $aws->s3->deleteObject($bucket, $objects);
// GET DETAILS ABOUT A SINGLE EC2 INSTANCE, WHETHER IT IS CURRENTLY RUNNING OR NOT
$response = $aws->ec2->getInstanceStatus('i-xxxxeeee2222');