PHPackages                             developeruz/yii2-short-code - 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. developeruz/yii2-short-code

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

developeruz/yii2-short-code
===========================

Using a short code in your project based on Yii2.

291PHP

Since Dec 22Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-short-code - подсветка кода на основе Highlightjs для проектов на Yii2
===========================================================================

[](#yii2-short-code---подсветка-кода-на-основе-highlightjs-для-проектов-на-yii2)

Установка:

```
$ php composer.phar require developeruz/yii2-short-code "*"
```

\###Использование### В action контроллера прописываем событие:

```
Yii::$app->view->on(View::EVENT_AFTER_RENDER, ['developeruz\shortcode\Highlightjs', 'shortCode']);
```

Теперь после генерации шаблона, поведение будет заменять куски

```
[code]
some code
[/code]

```

на

```

some code

```

и подключать файлы Highlightjs. Подробнее об Highlightjs можно почитать на сайте

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2b19e4f376a7fc95ccaf38274dc7768c7216d419b75b5a6da5d935c5d8521db3?d=identicon)[DeveloperUz](/maintainers/DeveloperUz)

---

Top Contributors

[![developeruz](https://avatars.githubusercontent.com/u/8788118?v=4)](https://github.com/developeruz "developeruz (2 commits)")

---

Tags

highlightjsyii2

### Embed Badge

![Health badge](/badges/developeruz-yii2-short-code/health.svg)

```
[![Health](https://phpackages.com/badges/developeruz-yii2-short-code/health.svg)](https://phpackages.com/packages/developeruz-yii2-short-code)
```

PHPackages © 2026

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