PHPackages                             grigorieff/yii2-aws - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. grigorieff/yii2-aws

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

grigorieff/yii2-aws
===================

Yii2 component for Amazon Web Service

0328[1 issues](https://github.com/grigorieff/yii2-aws/issues)PHP

Since Dec 21Pushed 10y ago1 watchersCompare

[ Source](https://github.com/grigorieff/yii2-aws)[ Packagist](https://packagist.org/packages/grigorieff/yii2-aws)[ RSS](/packages/grigorieff-yii2-aws/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Yii2 component for AWS
======================

[](#yii2-component-for-aws)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist grigorieff/yii2-aws "master-dev"

```

or add

```
"grigorieff/yii2-aws": "*"
```

to the require section of your composer.json.

Configuration
-------------

[](#configuration)

Add to your app config:

```
    'components' => [

        .........

        'aws' => [
            'class' => grigorieff\aws\AWSComponent,
            'key' => '......',
            'secret' => '......',
            'region' => '......'
        ],

        .........

    ];
```

Usage
-----

[](#usage)

```
$aws = Yii::$app->aws;

// AWS S3

$s3 = $aws->get('s3');

try {
    $s3->putObject(array(
        'Bucket' => 'my-bucket',
        'Key'    => 'my-object',
        'Body'   => fopen('/path/to/file', 'r'),
        'ACL'    => 'public-read',
    ));
} catch (S3Exception $e) {
    echo "There was an error uploading the file.\n";
}

......

try {
    $resource = fopen('/path/to/file', 'r');
    $s3->upload('my-bucket', 'my-object', $resource, 'public-read');
} catch (S3Exception $e) {
    echo "There was an error uploading the file.\n";
}

......

$s3->getObject(array(
    'Bucket' => $bucket,
    'Key'    => 'data.txt',
    'SaveAs' => '/tmp/data.txt'
));
echo $result['Body']->getUri() . "\n";
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a98ed03a11552a292643c792df2a0814a43851c5539e5183ba43822944f11c9a?d=identicon)[grigorieff](/maintainers/grigorieff)

---

Top Contributors

[![grigorieff](https://avatars.githubusercontent.com/u/1093528?v=4)](https://github.com/grigorieff "grigorieff (7 commits)")

### Embed Badge

![Health badge](/badges/grigorieff-yii2-aws/health.svg)

```
[![Health](https://phpackages.com/badges/grigorieff-yii2-aws/health.svg)](https://phpackages.com/packages/grigorieff-yii2-aws)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
