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

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

dmstr/yii2-publication-module
=============================

A module for publications

1.3.0(2y ago)754.6k↓11.5%3proprietaryPHP

Since Apr 10Pushed 7mo ago5 watchersCompare

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

READMEChangelog (10)Dependencies (8)Versions (115)Used By (0)

Yii2 Publication Module
=======================

[](#yii2-publication-module)

A module for publications

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-publication-module "*"

```

or add

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

```

to the require section and

```
{
    "type": "vcs",
    "url": "https://git.hrzg.de/dmstr/yii2-publication-module.git"
}

```

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

Configuration
-------------

[](#configuration)

Once the extension is installed, simply use it in your code by adding the two module to the module section of your config

```
'modules' => [
    'publication' => [
        'class' => dmstr\modules\publication\Module::class,
        'previewItemRole' => null // This describes a rbac role which allowed the user which has grants for this privilege to access the default detail action even if the item is not published
    ]
]
```

Run migrations from `@dmstr/modules/publication/migrations`.

Usage
-----

[](#usage)

Create widget-templates `/widgets/crud/widget-template/index` for teaser

```
{
    "title": "News Teaser",
    "type": "object",
    "properties": {
        "teaser": {
            "type": "string",
            "title": "Teaser",
            "default": "subline"
        }
    }
}

```

and content.

```
{
    "title": "News Content",
    "type": "object",
    "properties": {
        "content": {
            "type": "string",
            "title": "Content",
            "default": "Content"
        }
    }
}

```

Create a category, ie. `News` and assign templates to it.

Create an item.

---

`publication/default/index?categoryId=1`

### Use variables from content schema in teaser template

[](#use-variables-from-content-schema-in-teaser-template)

```
{{ content.headline }}
{{ content.image }}

```

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance45

Moderate activity, may be stable

Popularity35

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 71.1% 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 ~19 days

Recently: every ~8 days

Total

98

Last Release

1071d ago

Major Versions

0.5.3 → 1.0.0-rc12020-06-16

### Community

Maintainers

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

---

Top Contributors

[![eluhr](https://avatars.githubusercontent.com/u/13000805?v=4)](https://github.com/eluhr "eluhr (140 commits)")[![handcode](https://avatars.githubusercontent.com/u/825574?v=4)](https://github.com/handcode "handcode (32 commits)")[![schmunk42](https://avatars.githubusercontent.com/u/649031?v=4)](https://github.com/schmunk42 "schmunk42 (15 commits)")[![J-Reichl](https://avatars.githubusercontent.com/u/18026410?v=4)](https://github.com/J-Reichl "J-Reichl (9 commits)")[![gbisurgi](https://avatars.githubusercontent.com/u/18024942?v=4)](https://github.com/gbisurgi "gbisurgi (1 commits)")

---

Tags

yii2publication

### Embed Badge

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

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

###  Alternatives

[dmstr/yii2-pages-module

Application sitemap and navigation manager module for Yii 2.0 Framework

3177.5k2](/packages/dmstr-yii2-pages-module)

PHPackages © 2026

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