PHPackages                             pantera-digital/yii2-text-avatar - 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. pantera-digital/yii2-text-avatar

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

pantera-digital/yii2-text-avatar
================================

11.5kPHP

Since Feb 21Pushed 8y ago2 watchersCompare

[ Source](https://github.com/pantera-digital/yii2-text-avatar)[ Packagist](https://packagist.org/packages/pantera-digital/yii2-text-avatar)[ RSS](/packages/pantera-digital-yii2-text-avatar/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-text-avatar
================

[](#yii2-text-avatar)

Установка
---------

[](#установка)

```
composer require pantera-digital/yii2-text-avatar "@dev"

```

Использование
-------------

[](#использование)

### Виджет

[](#виджет)

```
echo TextAvatarWidget::widget([
    'string' => 'Jon Smith',
    'size' => '60x60',
    'color' => '#CBCBCB',
    'options' => [
        'class' => ' without-img marketplace-view-author-row-avatar',
    ],
]);

```

##### Настройка

[](#настройка)

```
strign => Строчка которую нужно преобразовать в текстовый аватар
size => Размер аватара
color => Цвет заливки
options => Массив опция для контейнера
limit => указывает сколько слов должно быть обрезанно
tag => Html тег контейнера

```

##### Хелпер

[](#хелпер)

```
echo TextAvatarHelper::generate("Jon Smith")

```

##### Настройка

[](#настройка-1)

Метод generate Применяет два параметра

1. Строчка которую нужно преобразовать в текстовый аватар
2. Массив с одним параметром limit указывает сколько слов должно быть обрезанно

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/642519?v=4)[Alex Kostin](/maintainers/webmayak)[@webmayak](https://github.com/webmayak)

---

Top Contributors

[![webmayak](https://avatars.githubusercontent.com/u/642519?v=4)](https://github.com/webmayak "webmayak (3 commits)")[![Singletonn](https://avatars.githubusercontent.com/u/9639275?v=4)](https://github.com/Singletonn "Singletonn (2 commits)")

### Embed Badge

![Health badge](/badges/pantera-digital-yii2-text-avatar/health.svg)

```
[![Health](https://phpackages.com/badges/pantera-digital-yii2-text-avatar/health.svg)](https://phpackages.com/packages/pantera-digital-yii2-text-avatar)
```

###  Alternatives

[pressbooks/pressbooks-aldine

Aldine is the default theme for the home page of Pressbooks networks. It is named for the Aldine Press, founded by Aldus Manutius in 1494, who is regarded by many as the world’s first publisher.

114.5k](/packages/pressbooks-pressbooks-aldine)

PHPackages © 2026

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