PHPackages                             humaninitiative/yii2-minio-api-client - 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. humaninitiative/yii2-minio-api-client

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

humaninitiative/yii2-minio-api-client
=====================================

A Yii2 component to act as a client for a MinIO API.

1.0(7mo ago)031MITPHPPHP ^8.0

Since Nov 17Pushed 7mo agoCompare

[ Source](https://github.com/HumanInitiative/yii2-minio-api-client)[ Packagist](https://packagist.org/packages/humaninitiative/yii2-minio-api-client)[ RSS](/packages/humaninitiative-yii2-minio-api-client/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Yii2 MinIO API Client
=====================

[](#yii2-minio-api-client)

Ini adalah komponen sisi **client** untuk akses ke MinIO via API.

Fitur
-----

[](#fitur)

Upload

Delete

Check File Exist

Get URL

Instalasi
---------

[](#instalasi)

### 1. Install via Composer

[](#1-install-via-composer)

```
composer require humaninitiative/yii2-minio-api-client:"dev-master"
```

### 2. Config Aplikasi

[](#2-config-aplikasi)

Tambahkan pada `.env` :

```
MINIO_API_URL={api endpoint url}

```

Lalu tambahkan pada `config/web.php` :

```
'components' => [
	'minioApiClient' => [
		'class' => 'humaninitiative\s3\client\MinioApiClient',
		'baseUrl' => $_ENV['MINIO_API_URL'],
	],
],

```

### 3. Contoh Penggunaan

[](#3-contoh-penggunaan)

Upload

```
use yii\web\UploadedFile;

// Di dalam sebuah controller action
$file = UploadedFile::getInstanceByName('my_file');

$result = Yii::$app->minioApiClient->uploadFile(
	$file,			// file upload
	'my-bucket',		// sigma, hrm, project, finance + nama tenant tanpa spasi bisa pakai - atau _
	'images/profiles',	// folder tujuan, contoh: folder, folder/folder, folder/folder/folder
	'filename',		// nama file
	'public',		// 1: public 0:private, default 0
);

// Jika public, save response url
// Jika private, save response key dan bucket dan gunakan api get url untuk akses file

```

Delete

```
// param nama bucket dan key dari response upload
Yii::$app->minioApiClient->deleteFile('my-bucket', 'images/profiles/user123.jpg');

```

Check File Exist

```
// param nama bucket dan key dari response upload
Yii::$app->minioApiClient->checkFileExists('my-bucket', 'images/profiles/user123.jpg');

```

Get Url

```
// param nama bucket, key dari response upload dan expires_in_minutes untuk membuat link bisa diakses dalam berapa menit
Yii::$app->minioApiClient->getUrl('my-bucket', 'images/profiles/user123.jpg', 60);

```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance62

Regular maintenance activity

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

230d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/131ced7eff9bd028dcf1d2b3ed34d1b82e98e2c06a76014dc4d7e361da411940?d=identicon)[arifinm](/maintainers/arifinm)

---

Top Contributors

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

---

Tags

s3yii2extensionapi clientminio

### Embed Badge

![Health badge](/badges/humaninitiative-yii2-minio-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/humaninitiative-yii2-minio-api-client/health.svg)](https://phpackages.com/packages/humaninitiative-yii2-minio-api-client)
```

###  Alternatives

[fedemotta/yii2-aws-sdk

This extension provides the AWS SDK integration for the Yii2 framework

15448.9k2](/packages/fedemotta-yii2-aws-sdk)

PHPackages © 2026

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