PHPackages                             sereja3578/yii2-documents-widget - 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. sereja3578/yii2-documents-widget

ActiveYii2-extension

sereja3578/yii2-documents-widget
================================

Package

00PHP

Since Jan 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Sereja3578/yii2-documents-widget)[ Packagist](https://packagist.org/packages/sereja3578/yii2-documents-widget)[ RSS](/packages/sereja3578-yii2-documents-widget/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-documents-widget
=====================

[](#yii2-documents-widget)

Для установки добавить в composer.json

"sereja3578/yii2-documents-widget": "dev-master"

Для базового использования нужно добавить в view

```

```

Метод для получения пути к файлу может выглядеть например так:

```
/**
 * Метод для ajax запроса в виджете
 *
 * @param $id
 * @throws NotFoundHttpException
 * @return string
 */
public function actionGetDocumentUrl(int $id) : string
{
    $model = $this->findModel($id);
    $file = $model->getFile()->one();

    Yii::$app->response->format = Response::FORMAT_JSON;

    return $file ? ['url' => $file->getUrl()] : ['error' => Yii::t('user', 'Нет файла')];
}

```

То есть у user, есть связанная с ним таблица файлов, откуда можно получить url для файла.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ff69d8cccad402adf33c0a6edd11c28bada31a007eee390288ada8e035444f4?d=identicon)[Sereja3578](/maintainers/Sereja3578)

---

Top Contributors

[![Sereja3578](https://avatars.githubusercontent.com/u/12445302?v=4)](https://github.com/Sereja3578 "Sereja3578 (3 commits)")

### Embed Badge

![Health badge](/badges/sereja3578-yii2-documents-widget/health.svg)

```
[![Health](https://phpackages.com/badges/sereja3578-yii2-documents-widget/health.svg)](https://phpackages.com/packages/sereja3578-yii2-documents-widget)
```

PHPackages © 2026

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