PHPackages                             dmstr/yii2-prototype-module - 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. dmstr/yii2-prototype-module

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

dmstr/yii2-prototype-module
===========================

Backend UI for static files

2.3.1(11mo ago)568.9k—8.3%53BSD-3-ClausePHPPHP &gt;=7.0.0

Since Mar 4Pushed 7mo ago5 watchersCompare

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

READMEChangelog (10)Dependencies (7)Versions (101)Used By (3)

Yii2 Prototype Module
=====================

[](#yii2-prototype-module)

[![Latest Stable Version](https://camo.githubusercontent.com/7c5dde28aba49c7e30072956575adb99df81106b81f98dd08d83327a6f922fd7/68747470733a2f2f706f7365722e707567782e6f72672f646d7374722f796969322d70726f746f747970652d6d6f64756c652f762f737461626c652e737667)](https://packagist.org/packages/dmstr/yii2-prototype-module)[![Total Downloads](https://camo.githubusercontent.com/cbd6d32d4ff66580a6a13a94beb210b53812803bedb59b55a3242f342b7a77b0/68747470733a2f2f706f7365722e707567782e6f72672f646d7374722f796969322d70726f746f747970652d6d6f64756c652f646f776e6c6f6164732e737667)](https://packagist.org/packages/dmstr/yii2-prototype-module)[![License](https://camo.githubusercontent.com/54984852bd84165c553aab332cf245b72f7725f09158905303a64ce81999eeac/68747470733a2f2f706f7365722e707567782e6f72672f646d7374722f796969322d70726f746f747970652d6d6f64756c652f6c6963656e73652e737667)](https://packagist.org/packages/dmstr/yii2-prototype-module)

Twig, LESS and HTML Content prototyping module for Yii 2.0 Framework

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist dmstr/yii2-prototype-module "*"

```

or add

```
"dmstr/yii2-prototype-module": "*"

```

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

Requirements
------------

[](#requirements)

- configured Twig view renderer in application (since 0.5.0-rc6)

Usage
-----

[](#usage)

\####Prototype command:

\#####Configuration

In your console config add:

```
'controllerMap' => [
    'prototype' => 'dmstr\modules\prototype\commands'
]

```

##### Commands:

[](#commands)

- prototype/export-html
- prototype/export-less
- prototype/export-twig

Each of these commands exports either html, less or twig as a file on a given file path (via `--exportPath` flag) default is `@runtime/exports`

Note: To escape file names you can use the `--escapeFileNames` flag

- prototype/export-asset-bundle &lt;mainLessFile (optional)&gt;

Exports less files and an asset bunde to a given export path (via `--exportPath` flag) default is `@runtime/exports`

Note:

1.) You will be prompted to choose a namespace and to select less files which should be added to the asset bundle 2.) The defined main less file will be automatical have default yes in confirmation

\--&gt; if you run this command on non interactive mode (--interactive=0), main less file will be added to the asset bundle and the namespace will be set to `app\assets`

### Twig example

[](#twig-example)

```
{{ use ('hrzg/moxiecode/moxiemanager/widgets') }}

{{ browse_button_widget( {"tagName": "a"} ) }}

```

### Cache trigger time

[](#cache-trigger-time)

```
\Yii::$app->cache->get('prototype.less.changed_at');

```

Testing
-------

[](#testing)

```
docker-compose up -d

docker-compose run phpfpm codecept run

```

CRUDS
-----

[](#cruds)

‼️ Do no regenerate CRUDs for `html`

```
$ yii batch \
    --tables=app_twig \
    --modelNamespace=dmstr\\modules\\prototype\\models \
    --modelQueryNamespace=dmstr\\modules\\prototype\\models\\query \
    --crudSearchModelNamespace=dmstr\\modules\\prototype\\models\\query \
    --crudControllerNamespace=dmstr\\modules\\prototype\\controllers \
    --crudViewPath=@dmstr/modules/prototype/views \

```

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance59

Moderate activity, may be stable

Popularity36

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 68.3% 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 ~41 days

Recently: every ~290 days

Total

83

Last Release

337d ago

Major Versions

0.6.8 → 1.0.0-beta12019-02-07

1.0.0-beta6 → 2.0.0-alpha12020-01-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b4ab2b6685ec71887908ec8cff261a16cd5bb24c69bb8ab52840e220f175f9d?d=identicon)[schmunk](/maintainers/schmunk)

---

Top Contributors

[![schmunk42](https://avatars.githubusercontent.com/u/649031?v=4)](https://github.com/schmunk42 "schmunk42 (99 commits)")[![eluhr](https://avatars.githubusercontent.com/u/13000805?v=4)](https://github.com/eluhr "eluhr (36 commits)")[![handcode](https://avatars.githubusercontent.com/u/825574?v=4)](https://github.com/handcode "handcode (6 commits)")[![gbisurgi](https://avatars.githubusercontent.com/u/18024942?v=4)](https://github.com/gbisurgi "gbisurgi (4 commits)")

---

Tags

yii2extension

### Embed Badge

![Health badge](/badges/dmstr-yii2-prototype-module/health.svg)

```
[![Health](https://phpackages.com/badges/dmstr-yii2-prototype-module/health.svg)](https://phpackages.com/packages/dmstr-yii2-prototype-module)
```

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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