PHPackages                             vanquyet/yii2-query-template - 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. vanquyet/yii2-query-template

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

vanquyet/yii2-query-template
============================

Embed your data from database to your content in a flexible way

1.0.5(8y ago)0623MITPHP

Since Apr 26Pushed 8y agoCompare

[ Source](https://github.com/vanquyettran/yii2-query-template)[ Packagist](https://packagist.org/packages/vanquyet/yii2-query-template)[ RSS](/packages/vanquyet-yii2-query-template/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (1)Versions (8)Used By (0)

Yii2 Query Template
===================

[](#yii2-query-template)

Embed your data from database to your content in a flexible way

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist vanquyet/yii2-query-template "*"

```

or add

```
"vanquyet/yii2-query-template": "*"

```

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

Usage
-----

[](#usage)

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

```

{{% getStudentName(123) %}}

"My name is [[% getStudentName(123) %]] "

{{* my_name *}}

"My name is [[* my_name *]] "

{{% findStudent(123).#getInfo("name") %}}

"Student name: [[% findStudent(123).@getInfo(\"name\") %]] "
{{% findStudent(123).#imgTag({"alt": "Student name: [[% this.@getInfo(\"name\") %]] "}) %}}

((` my_name : getStudentName(123) `))
((` country : "Vietnam" `))
((` year : 1993 `))
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 72.2% 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 ~10 days

Total

7

Last Release

3248d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e8b08d86697ba624bd690757355b47fc21fd3a71205b6c5df8f2f17af1c6b0a?d=identicon)[vanquyettran](/maintainers/vanquyettran)

---

Top Contributors

[![vanquyettran](https://avatars.githubusercontent.com/u/27229722?v=4)](https://github.com/vanquyettran "vanquyettran (13 commits)")[![quyettvq](https://avatars.githubusercontent.com/u/15028043?v=4)](https://github.com/quyettvq "quyettvq (5 commits)")

---

Tags

yii2 query template

### Embed Badge

![Health badge](/badges/vanquyet-yii2-query-template/health.svg)

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

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

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

PHPackages © 2026

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