Skip to content
Easy to use S3 services of Amazon AWS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
LICENSE
README.md
composer.json

README.md

aws-s3-service-php

Easy to use S3 services of Amazon AWS

Installation

composer require tbetool/aws-s3-service-php

Initialize

$s3Service = new S3Service(S3_KEY, S3_SECRET, S3_BUCKET);

set region

$s3Service->setS3Region('us-east-1');

set version

$s3Service->setS3Version('latest');

set HTTP Verfity

$s3Service->setS3HttpVerify(false);

upload

try {

    $s3_url = $s3Service->moveToS3($local_file, $key, $acl);
    return $s3_url;
} catch (Exception $e) {
    print($e->getMessage();
}
You can’t perform that action at this time.