PHPackages                             pcrt/yii2-attachments - 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. pcrt/yii2-attachments

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

pcrt/yii2-attachments
=====================

Yii2-select2 attachments management implementation

1.0.0(4y ago)00BSD-3-ClausePHPPHP &gt;=7.4.0

Since Nov 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/pcrt/yii2-module-attachments)[ Packagist](https://packagist.org/packages/pcrt/yii2-attachments)[ RSS](/packages/pcrt-yii2-attachments/feed)WikiDiscussions master Synced 1mo ago

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

Modulo gestione allegati
========================

[](#modulo-gestione-allegati)

### Configurazione

[](#configurazione)

Dopo l'installazione, è necessario collegare la migration, inserendo il seguente codice in `config/console.php`

```
'aliases' => [
    '@pcrt/file' => '@vendor/pcrt/yii2-attachments'
],

'controllerMap' => [
    'migrate' => [
        'class' => 'yii\console\controllers\MigrateController',
        'migrationNamespaces' => [
            'pcrt\file\migrations'
        ]
    ]
]
```

ed eseguire le migration con `php yii migrate`.

Poi, impostare la configurazione in `config/web.php`

```
'modules' => [
    'attachments' => [
        'class' => 'pcrt\file\Module',
        'filePluginSavePath' => '/files' //cartella del filesystem in cui salvare i file (all'interno della directory pubblica di yii)
    ]
]
```

---

### Esempio widget

[](#esempio-widget)

```
FileUploader::widget([
    'model_classname' => 'Attachment', //nome dell'entità o tabella
    'model_id' => 1, //id dell'elemento
])
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

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

1652d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f6ad6343f484e9e2ee1c530ec7c4067ad974f540cff580dce786b8953f3fdd1?d=identicon)[protocolli](/maintainers/protocolli)

---

Top Contributors

[![Giacomo411](https://avatars.githubusercontent.com/u/7260542?v=4)](https://github.com/Giacomo411 "Giacomo411 (3 commits)")[![pcrt](https://avatars.githubusercontent.com/u/44270932?v=4)](https://github.com/pcrt "pcrt (2 commits)")

### Embed Badge

![Health badge](/badges/pcrt-yii2-attachments/health.svg)

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

###  Alternatives

[mihaildev/yii2-elfinder

Yii2 ElFinder

169658.8k52](/packages/mihaildev-yii2-elfinder)[liyunfang/yii2-upload-behavior

Upload behavior for Yii 2

161.7k](/packages/liyunfang-yii2-upload-behavior)

PHPackages © 2026

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