PHPackages                             grptx/yii2-s3client - 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. grptx/yii2-s3client

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

grptx/yii2-s3client
===================

v1.3.0(6y ago)11282MITPHPCI failing

Since Jul 18Pushed 6y agoCompare

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

READMEChangelog (8)Dependencies (2)Versions (9)Used By (0)

yii2-S3Client
=============

[](#yii2-s3client)

[![Latest Stable Version](https://camo.githubusercontent.com/e0c98a85dd10181ddc5e6d7fbf14cad70043d929ccf41c943794a2e8e6d9fc2a/68747470733a2f2f706f7365722e707567782e6f72672f67727074782f796969322d7333636c69656e742f762f737461626c65)](https://packagist.org/packages/grptx/yii2-s3client)[![Total Downloads](https://camo.githubusercontent.com/db28d8102d07241ed4e7cb0b4beb3e8ff98ffcb831fda20ee59c65f7a18e6d28/68747470733a2f2f706f7365722e707567782e6f72672f67727074782f796969322d7333636c69656e742f646f776e6c6f616473)](https://packagist.org/packages/grptx/yii2-s3client)[![Latest Unstable Version](https://camo.githubusercontent.com/e4c9ba46369fc4529d308f7f07544476f0f65332ee2277fae3b7f9b8f7ab8e59/68747470733a2f2f706f7365722e707567782e6f72672f67727074782f796969322d7333636c69656e742f762f756e737461626c65)](https://packagist.org/packages/grptx/yii2-s3client)[![License](https://camo.githubusercontent.com/0b05e7f38ef825c0a64180c1b15735c0c12496278b34316d3f63883ae10aa63c/68747470733a2f2f706f7365722e707567782e6f72672f67727074782f796969322d7333636c69656e742f6c6963656e7365)](https://packagist.org/packages/grptx/yii2-s3client)[![composer.lock available](https://camo.githubusercontent.com/b01634961ad112622ec0dcc335ed70d3f416fbe903e9e85e8b04e9278112c215/68747470733a2f2f706f7365722e707567782e6f72672f67727074782f796969322d7333636c69656e742f636f6d706f7365726c6f636b)](https://packagist.org/packages/phpunit/phpunit)

Yii2 S3Client based on [klinson/aws-s3-minio](https://github.com/klinson/aws-s3-minio)

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

[](#installation)

Preferred way to install is through [Composer](https://getcomposer.org):

```
php composer.phar require grptx/yii2-s3client:^1
```

Or, you may add

```
"grptx/yii2-s3client": "^1"
```

to the require section of your `composer.json` file and execute `php composer.phar update`.

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

[](#configuration)

in `web.php`

```
'components'=> [
    's3client' => [
        'class'=> 'grptx\S3Client',
        'key' => '',
        'secret' => '',
        'endpoint'=> '',
        'region' => '',
        'defaultBucket' => '', //optional default bucket
        'debug' => false, // optional
        'http' => [ //optional
            'verify' => false //use false to self-signed certs
        ],
    ],
],
```

Usage
-----

[](#usage)

```
/** @var S3Client $s3client */
$s3client = Yii::$app->s3client;

/**
 * put file to minio/s3 server
 *
 * @param string $localObjectPath full path to file to put
 * @param string|null $storageSavePath full path to file in bucket (optional)
 * @param string|null $bucket the bucket name (optional)
 * @param array $meta (optional)
 * @return Result|bool
 */
$s3client->putObjectByPath(string $localObjectPath, string $storageSavePath = null, string $bucket = null, array $meta = []);

/**
 * create and put a file into minio/s3 server with the specified content
 *
 * @param string $content
 * @param string $storageSavePath
 * @param string $bucket
 * @param array $meta
 * @return Result|bool
 */
$s3client->putObjectByContent(string $content, string $storageSavePath, string $bucket = null, array $meta = []);

/**
 * get file object from minio/s3 server
 *
 * @param string $storageSavePath
 * @param string|null $localSaveAsPath
 * @param string|null $bucket
 * @return bool|mixed
 */
$s3client->getObject(string $storageSavePath, string $localSaveAsPath = null, string $bucket = null)

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~13 days

Recently: every ~5 days

Total

8

Last Release

2399d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

yii2PHP7minioyii2-componentss3client

### Embed Badge

![Health badge](/badges/grptx-yii2-s3client/health.svg)

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

###  Alternatives

[fedemotta/yii2-aws-sdk

This extension provides the AWS SDK integration for the Yii2 framework

15430.4k2](/packages/fedemotta-yii2-aws-sdk)[grptx/yii2-firebase

Yii2 Component to connect to Firebase Database

1419.9k](/packages/grptx-yii2-firebase)

PHPackages © 2026

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