PHPackages                             ignatenkovnikita/yii2-template-messages - 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. [Templating &amp; Views](/categories/templating)
4. /
5. ignatenkovnikita/yii2-template-messages

ActiveYii2-extension[Templating &amp; Views](/categories/templating)

ignatenkovnikita/yii2-template-messages
=======================================

Template Message with placeholder

v1.0(8y ago)15.3kBSD-3-ClausePHP

Since Jun 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ignatenkovnikita/yii2-template-messages)[ Packagist](https://packagist.org/packages/ignatenkovnikita/yii2-template-messages)[ RSS](/packages/ignatenkovnikita-yii2-template-messages/feed)WikiDiscussions master Synced 2mo ago

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

Template Message with placeholder
=================================

[](#template-message-with-placeholder)

Template Message with placeholder

[![Latest Stable Version](https://camo.githubusercontent.com/597e3c1e02452d777bc4df2e8de7eca51b7446a4df5caeeb2f1726af47060b35/68747470733a2f2f706f7365722e707567782e6f72672f69676e6174656e6b6f766e696b6974612f796969322d74656d706c6174652d6d657373616765732f762f737461626c65)](https://packagist.org/packages/ignatenkovnikita/yii2-template-messages) [![Total Downloads](https://camo.githubusercontent.com/c966c8d6c8b4dbb6eccefb73ac71202864e25a04d782821170d745f8577c5055/68747470733a2f2f706f7365722e707567782e6f72672f69676e6174656e6b6f766e696b6974612f796969322d74656d706c6174652d6d657373616765732f646f776e6c6f616473)](https://packagist.org/packages/ignatenkovnikita/yii2-template-messages) [![Latest Unstable Version](https://camo.githubusercontent.com/2e15f5144fffe70fd9eb1dc2c9fae0ccbf3bf8210b5c048b46ab33175908bc33/68747470733a2f2f706f7365722e707567782e6f72672f69676e6174656e6b6f766e696b6974612f796969322d74656d706c6174652d6d657373616765732f762f756e737461626c65)](https://packagist.org/packages/ignatenkovnikita/yii2-template-messages) [![License](https://camo.githubusercontent.com/be8f1f4f822f66ac3d9ad28dcee3af5eb2f63d5af9e6a0c45bc1d9c562a447ee/68747470733a2f2f706f7365722e707567782e6f72672f69676e6174656e6b6f766e696b6974612f796969322d74656d706c6174652d6d657373616765732f6c6963656e7365)](https://packagist.org/packages/ignatenkovnikita/yii2-template-messages)

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist ignatenkovnikita/yii2-template-messages "*"

```

or add

```
"ignatenkovnikita/yii2-template-messages": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
'modules'=>[
        'template' => [
            'class' => 'ignatenkovnikita\template\Module',
        ],
    ],
```

In Code uses

```
Template::replace('template_name', [
        'your_variable' => 'value
]);
```

Example Add in migration

```
  $rows = [
            [
                'promo-code-send',
                'Отправка купона пользователю',
                '["promo_code"]',
                'Трэк {promo_code}'
            ],

        ];

        $this->batchInsert('{{template}}', ['id', 'title', 'placeholders', 'message'], $rows);

        $this->update('{{%template}}',['widget_options' => '{"toolbar":false,"pastePlainText":true,"buttonSource":true,"paragraphize":false}']);
```

Apply migration

```
./console/yii migrate --migrationPath=vendor/ignatenkovnikita/yii2-template-messages/migrations/
```

TODO

- add suppport email
- refactoring

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

3241d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4436320?v=4)[Nikita Ignatenkov](/maintainers/ignatenkovnikita)[@ignatenkovnikita](https://github.com/ignatenkovnikita)

---

Top Contributors

[![ignatenkovnikita](https://avatars.githubusercontent.com/u/4436320?v=4)](https://github.com/ignatenkovnikita "ignatenkovnikita (23 commits)")

---

Tags

messagetemplateyii2extension

### Embed Badge

![Health badge](/badges/ignatenkovnikita-yii2-template-messages/health.svg)

```
[![Health](https://phpackages.com/badges/ignatenkovnikita-yii2-template-messages/health.svg)](https://phpackages.com/packages/ignatenkovnikita-yii2-template-messages)
```

###  Alternatives

[raoul2000/yii2-bootswatch-asset

Use Bootswatch theme in your Yii application with minimum effort

2145.0k4](/packages/raoul2000-yii2-bootswatch-asset)[zxbodya/yii2-tinymce

Yii2 extension to use TinyMce with Compressor and FileManager

1732.1k3](/packages/zxbodya-yii2-tinymce)

PHPackages © 2026

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