PHPackages                             mag/s3 - 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. mag/s3

ActiveLibrary

mag/s3
======

S3 Uploader for Yii2 Framework

06841[1 issues](https://github.com/3dmaxpayne/s3/issues)PHP

Since Jun 14Pushed 10y ago1 watchersCompare

[ Source](https://github.com/3dmaxpayne/s3)[ Packagist](https://packagist.org/packages/mag/s3)[ RSS](/packages/mag-s3/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-s3-upload
==============

[](#yii2-s3-upload)

This extension provides upload to S3 files in Yii Framework 2. It is a wrapper for AWS SDK for PHP (@link )

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

[](#installation)

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

Either run

```
$ php composer.phar require mag/S3 "dev-master"

```

or add

```
"mag/S3": "dev-master"

```

to the `require` section of your `composer.json` file.

Use
---

[](#use)

add in config:

```
'components' => [
        's3' => [
            'class'     => 'mag/S3',
            'key'       => 'Your access key from amazon',
            'secret'    => 'Your secret key from amazon',
            'bucket'    => 'Bucket name',
        ],
        ...
```

And you can use it:

```
\Yii::$app->s3->upload('/home/username/Pictures/P1010238.JPG', 'test/my.jpg');
```

first param is local file name second param is file name on Amazon S3 server. It can include directories.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/7955784?v=4)[3dmaxpayne](/maintainers/3dmaxpayne)[@3dmaxpayne](https://github.com/3dmaxpayne)

### Embed Badge

![Health badge](/badges/mag-s3/health.svg)

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

PHPackages © 2026

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