sanicode/yii2-kilatstorage-s3

This class is a standalone S3 REST implementation for PHP 5.2.x (using CURL), that supports large file uploads and doesn’t require PEAR.

1.0 2016-03-30 14:19 UTC

This package is not auto-updated.

Last update: 2024-04-19 17:46:57 UTC


README

This class is a standalone S3 REST implementation for PHP 5.2.x (using CURL), that supports large file uploads and doesn’t require PEAR.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist sanicode/yii2-kilatstorage-s3 "*"

or add

"sanicode/yii2-kilatstorage-s3": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?php 
    use sanicode\KilatStorageS3\S3;
    $s3 = new S3($accessKey, $secretKey);
    //put object
    $s3->putObjectFile(...)
    //delete object
    $s3->deleteObject(...)
?>