PHPackages                             attek/text - 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. attek/text

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

attek/text
==========

Text engine for location-sensitive help

0.1.2(7y ago)033MITPHP

Since Jul 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Attek/ptetext)[ Packagist](https://packagist.org/packages/attek/text)[ RSS](/packages/attek-text/feed)WikiDiscussions master Synced 4d ago

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

Contextual Text manager for Yii2
--------------------------------

[](#contextual-text-manager-for-yii2)

---

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

[](#installation)

### Install With Composer

[](#install-with-composer)

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

Either run

```
php composer.phar require attek/pte-text "*"

```

Database table
--------------

[](#database-table)

yii migrate --migrationPath=@attek/text/migrations

Usage
-----

[](#usage)

Set in config file (web.php)

```
'modules' => [
    ...
    'text' => [
            'class' => 'attek\text\Module',
    ]
    ...
]
```

Popover for field contextual help
---------------------------------

[](#popover-for-field-contextual-help)

```
attek\text\assets\HelpAsset::register($this);

...
$form = ActiveForm::begin(
    [ 'fieldConfig' => [ 'class' => 'attek\text\components\ActiveField' ]
...
 $form->field( $model, 'name' )->textInput()->hint('Text for popup', ['slug' => 'slug-name'])
...
```

Popover for contextual help
---------------------------

[](#popover-for-contextual-help)

```
attek\text\assets\HelpAsset::register($this);

echo Html::a(Html::tag('i', '', ['class' => 'fa fa-question-circle']), null,
                                ['data-slug' => 'slug-name',  'data-toggle'=> 'popover', 'title' => 'Title for help'])
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~2 days

Total

3

Last Release

2852d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/267d57ffe312b5b4053f2955c687b376cabf787b61d75438a1fe1b326c1eaaf7?d=identicon)[attek](/maintainers/attek)

---

Top Contributors

[![Attek](https://avatars.githubusercontent.com/u/6275194?v=4)](https://github.com/Attek "Attek (26 commits)")

### Embed Badge

![Health badge](/badges/attek-text/health.svg)

```
[![Health](https://phpackages.com/badges/attek-text/health.svg)](https://phpackages.com/packages/attek-text)
```

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[cinghie/yii2-traits

Yii2 Traits

116.9k8](/packages/cinghie-yii2-traits)

PHPackages © 2026

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