PHPackages                             quanzo/yii2-shortcode - 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. quanzo/yii2-shortcode

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

quanzo/yii2-shortcode
=====================

Implementation shortcodes. Module for yii2

1.0.0(6y ago)041MITPHPPHP &gt;=5.6

Since Aug 31Pushed 6y ago1 watchersCompare

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

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

Shortcodes module for Yii2
==========================

[](#shortcodes-module-for-yii2)

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

[](#installation)

1. Copy to the folder with modules and connect *autoload.php*
2. Or use composer: add to the *require* section of the project `"quanzo/yii2-shortcode": "*"` or `composer require "quanzo/yii2-shortcode"`
3. Add to configuration

```
$config = [
    'bootstrap' => [
        'shortcode',
    ],
    'modules' => [
        'shortcode' => [
            'class' => '\x51\yii2\modules\shortcode\Module',
            'automatic' => false, // process content before output to browser
            'exclude' => [ // Routes in which the use of shortcodes is prohibited. Use * and ? mask
                'blocks/*',
            ],
            'shortcodes' => [
                'url' => function ($arParams, $content = '') { // use [url path="/site/index"]main page[/url]
                    if (!empty($arParams['path'])) {
                        $arUrl = [
                            $arParams['path']
                        ];
                        foreach ($arParams as $name => $val) {
                            if ($name != 0 || $name != 'path') {
                                $arUrl[$name] = $val;
                            }
                        }
                        $href = Url::to($arUrl);
                        if ($content) {
                            return Html::a($content, $href);
                        } else {
                            return $href;
                        }
                    }
                    return '';
                },
            ]
        ],
    ]
];
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

2443d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10706162?v=4)[quanzo](/maintainers/quanzo)[@quanzo](https://github.com/quanzo)

---

Top Contributors

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

---

Tags

yii2yiishortcodeyii2 module

### Embed Badge

![Health badge](/badges/quanzo-yii2-shortcode/health.svg)

```
[![Health](https://phpackages.com/badges/quanzo-yii2-shortcode/health.svg)](https://phpackages.com/packages/quanzo-yii2-shortcode)
```

###  Alternatives

[kop/yii2-scroll-pager

Infinite AJAX scrolling for Yii2 ListView widget

180706.5k10](/packages/kop-yii2-scroll-pager)[brussens/yii2-maintenance-mode

Maintenance mode component for Yii framework 2.x.x version.

78256.3k5](/packages/brussens-yii2-maintenance-mode)

PHPackages © 2026

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