PHPackages                             sect0r/yii2amazons3 - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. sect0r/yii2amazons3

ActiveLibrary[File &amp; Storage](/categories/file-storage)

sect0r/yii2amazons3
===================

Amazon S3 Client wrapper as Yii2 component

06PHP

Since Sep 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Sect0R/yii2amazons3)[ Packagist](https://packagist.org/packages/sect0r/yii2amazons3)[ RSS](/packages/sect0r-yii2amazons3/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-amazons3
=============

[](#yii2-amazons3)

======= Amazon S3 Client wrapper as Yii2 component.

**Usage**

```
return [
	// ...
	'components' => [
		'storage' => [
			'class' => '\Sect0R\yii2-amazons3\AmazonS3',
			'key' => 'AWS_ACCESS_KEY_ID',
			'secret' => 'AWS_SECRET_ACCESS_KEY',
			'bucket' => 'YOUR_BUCKET',
		],
		// ...
	],
];
```

You can then start using this component as:

```
$storage = \Yii::$app->storage;

// Uploads the file into S3 in that bucket.
$url = $storage->uploadFile('/path/to/file', 'unique_file_name');

// Delete multiple objects from a bucket using a single HTTP request. You may specify up to 1000 keys.
$result = $storage->deleteObjects([131234,121421]);

// Removes the null version (if there is one) of an object and inserts a delete marker, which becomes the latest version of the object.
$result = $storage->deleteObject(131234);

// Returns some or all (up to 1000) of the objects in a bucket.
$objects = $storage->listObjects();

// Returns metadata about all of the versions of objects in a bucket.
$keys = $storage->listObjectVersions();

// Deletes objects from Amazon S3 that match the result of a ListObjects operation.
$result = $storage->deleteMatchingObjects('thumbnail-');
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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://avatars.githubusercontent.com/u/5314575?v=4)[od Ruslan](/maintainers/Sect0R)[@Sect0R](https://github.com/Sect0R)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/sect0r-yii2amazons3/health.svg)

```
[![Health](https://phpackages.com/badges/sect0r-yii2amazons3/health.svg)](https://phpackages.com/packages/sect0r-yii2amazons3)
```

###  Alternatives

[venveo/craft-compress

Create smart zip files from Craft assets on the fly

124.7k](/packages/venveo-craft-compress)

PHPackages © 2026

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