PHP code example of cloudadic / feedback-api-s3

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

    

cloudadic / feedback-api-s3 example snippets




$feedback = new cloudadic\feedback\FeedbackUpload(new cloudadic\feedback\S3Bucket('AWS_ACCESS_KEY', 'AWS_SECRET_KEY', 'S3_BUCKET', 'us-east-1', '2006-03-01'));
$response = $feedback->UploadImage('/home/codeswift/Downloads/062aa016159b28294f8229cbbd0f602f.jpg', 'test/062aa016159b28294f8229cbbd0f602f.jpg');
print_r($response);