forked from LiveCarta/yii2-aws-s3
added note in readme.md
This commit is contained in:
10
README.md
10
README.md
@@ -7,6 +7,10 @@ An Amazon S3 component for Yii2.
|
|||||||
[](https://packagist.org/packages/frostealth/yii2-aws-s3)
|
[](https://packagist.org/packages/frostealth/yii2-aws-s3)
|
||||||
[](https://packagist.org/packages/frostealth/yii2-aws-s3)
|
[](https://packagist.org/packages/frostealth/yii2-aws-s3)
|
||||||
|
|
||||||
|
> Yii2-AWS-S3 uses [semantic versioning](http://semver.org/).
|
||||||
|
|
||||||
|
> Version 2.x requires PHP 7. For PHP less 7.0 use [1.x](https://github.com/frostealth/yii2-aws-s3/blob/1.x).
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
1. Run the [Composer](http://getcomposer.org/download/) command to install the latest version:
|
1. Run the [Composer](http://getcomposer.org/download/) command to install the latest version:
|
||||||
@@ -80,8 +84,8 @@ $result = $s3->upload('filename.ext', '/path/to/local/file.ext');
|
|||||||
|
|
||||||
$result = $s3->restore('filename.ext', $days = 7);
|
$result = $s3->restore('filename.ext', $days = 7);
|
||||||
|
|
||||||
/** @var bool $isExisting */
|
/** @var bool $existence */
|
||||||
$isExisting = $s3->exist('filename.ext');
|
$existence = $s3->exist('filename.ext');
|
||||||
|
|
||||||
/** @var string $url */
|
/** @var string $url */
|
||||||
$url = $s3->getUrl('filename.ext');
|
$url = $s3->getUrl('filename.ext');
|
||||||
@@ -279,4 +283,4 @@ allow to execute this command immediately: `$command->setSomething('some value')
|
|||||||
## License
|
## License
|
||||||
|
|
||||||
Yii2 AWS S3 is licensed under the MIT License.
|
Yii2 AWS S3 is licensed under the MIT License.
|
||||||
See the [LICENSE](LICENSE) file for more information.
|
See the [LICENSE](LICENSE) file for more information.
|
||||||
|
|||||||
Reference in New Issue
Block a user