PHPackages                             2amigos/yii2-resource-manager-component - 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. 2amigos/yii2-resource-manager-component

AbandonedArchivedYii2-extension[Utility &amp; Helpers](/categories/utility)

2amigos/yii2-resource-manager-component
=======================================

Resource manager eases your project resources management.

0.1.0(12y ago)3623.6k↓50%23[2 PRs](https://github.com/2amigos/yii2-resource-manager-component/pulls)BSD-3-ClausePHP

Since Feb 19Pushed 9y ago17 watchersCompare

[ Source](https://github.com/2amigos/yii2-resource-manager-component)[ Packagist](https://packagist.org/packages/2amigos/yii2-resource-manager-component)[ Docs](https://github.com/2amigos/yii2-resource-manager-component)[ RSS](/packages/2amigos-yii2-resource-manager-component/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Resource Manager component for Yii 2
====================================

[](#resource-manager-component-for-yii-2)

[![Latest Stable Version](https://camo.githubusercontent.com/44bfa97594c9d50bd427bc4d5d26e29069d95e1a59342af6bb36bc1ab4b8b324/68747470733a2f2f706f7365722e707567782e6f72672f32616d69676f732f796969322d7265736f757263652d6d616e616765722d636f6d706f6e656e742f762f737461626c652e737667)](https://packagist.org/packages/2amigos/yii2-ckeditor-widget) [![Total Downloads](https://camo.githubusercontent.com/e9424f10cf0d4ffc9c774ec6c046b19f13c0d6223d09913903a379eaaac1343f/68747470733a2f2f706f7365722e707567782e6f72672f32616d69676f732f796969322d7265736f757263652d6d616e616765722d636f6d706f6e656e742f646f776e6c6f6164732e737667)](https://packagist.org/packages/2amigos/yii2-resource-manager-component) [![Latest Unstable Version](https://camo.githubusercontent.com/cec0706e5457df02473b809717d4c1a83f957500dfe5f2025bab57c36cce03f1/68747470733a2f2f706f7365722e707567782e6f72672f32616d69676f732f796969322d7265736f757263652d6d616e616765722d636f6d706f6e656e742f762f756e737461626c652e737667)](https://packagist.org/packages/2amigos/yii2-resource-manager-component) [![License](https://camo.githubusercontent.com/6e370f323d77a61f81ba4d683b5f610d5171d74a728b25c10b88ff04655a0900/68747470733a2f2f706f7365722e707567782e6f72672f32616d69676f732f796969322d7265736f757263652d6d616e616765722d636f6d706f6e656e742f6c6963656e73652e737667)](https://packagist.org/packages/2amigos/yii2-resource-manager-component)

This extension allows you to manage resources. Currently supports two possible scenarios:

- Resources to save/or saved on a server's folder
- Resources to save/or saved on an Amazon S3 bucket

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

[](#installation)

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

Either run

```
php composer.phar require 2amigos/yii2-resource-manager-component "*"
```

or add

```
"2amigos/yii2-resource-manager-component": "*"
```

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

Configuring
-----------

[](#configuring)

Configure the selected component on your configuration file as follows:

```
// For this example we using AmazonS3ResourceManager component
// ...
'components' => [
	// ...
	'resourceManager' => [
	'class' => 'dosamigos\resourcemanager\AmazonS3ResourceManager',
		'key' => 'YOUR-AWS-KEY-HERE',
		'secret' => 'YOUR-AWS-SECRET-HERE',
		'bucket' => 'YOUR-AWS-BUCKET-NAME-HERE'
	]
	// ...
]
// ...

```

Done... Now, to save a resource to AWS S3 server, we just need to do the following:

```
// Defensive code checks not written for the example
$resource = yii\web\UploadedFile::getInstanceByName('instance-name');
$name = md5($resource->name) . '.' . $resource->getExtension();
if(\Yii::$app->resourceManager->save($resource, $name)) {
    echo 'Done...';
}

```

Notes
-----

[](#notes)

Looking for a version for the Yii 1.1? There is dedicated repository for it: [2amigos/resource-manager](https://github.com/2amigos/resource-manager).

> [![2amigOS!](https://camo.githubusercontent.com/9fd8f1de41dc23003bb2a54034cb6658dde5be97092e195a62d629d0d7fa7f6c/687474703a2f2f7777772e67726176617461722e636f6d2f6176617461722f35353336333339346437323934356666376564333132353536656330343165302e706e67)](http://www.2amigos.us)
> *Web development has never been so fun!*
> [www.2amigos.us](http://www.2amigos.us)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.3% 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

4465d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/566016?v=4)[Antonio Ramirez](/maintainers/tonydspaniard)[@tonydspaniard](https://github.com/tonydspaniard)

---

Top Contributors

[![tonydspaniard](https://avatars.githubusercontent.com/u/566016?v=4)](https://github.com/tonydspaniard "tonydspaniard (7 commits)")[![creocoder](https://avatars.githubusercontent.com/u/896494?v=4)](https://github.com/creocoder "creocoder (2 commits)")[![resurtm](https://avatars.githubusercontent.com/u/100198?v=4)](https://github.com/resurtm "resurtm (1 commits)")[![slavcodev](https://avatars.githubusercontent.com/u/757721?v=4)](https://github.com/slavcodev "slavcodev (1 commits)")[![tarikuzunkaya07](https://avatars.githubusercontent.com/u/6993325?v=4)](https://github.com/tarikuzunkaya07 "tarikuzunkaya07 (1 commits)")

---

Tags

resourceextensionyiicomponent

### Embed Badge

![Health badge](/badges/2amigos-yii2-resource-manager-component/health.svg)

```
[![Health](https://phpackages.com/badges/2amigos-yii2-resource-manager-component/health.svg)](https://phpackages.com/packages/2amigos-yii2-resource-manager-component)
```

PHPackages © 2026

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