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.
Installs: 53
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
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(...) ?>