PHPackages                             andrew72ru/yii2-pen - 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. andrew72ru/yii2-pen

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

andrew72ru/yii2-pen
===================

Content editor like Medium.com for yii-2 based on https://github.com/sofish/pen

015JavaScript

Since May 13Pushed 11y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Content editor like Medium.com for yii-2
========================================

[](#content-editor-like-mediumcom-for-yii-2)

Content editor like Medium.com for yii-2 based on

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist andrew72ru/yii2-pen "*"

```

or add

```
"andrew72ru/yii2-pen": "*"

```

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

Usage
-----

[](#usage)

Use this in Active Form.

There is two cases of usage.

First, for multiple string text (like textarea).

This code add a editable `section` element to your form and make a `p` tag in there for each paragraph.

```
    use andrew72ru\pen\Pen;

    echo $form->field($model, 'text')->widget(andrew72ru\pen\Pen::className());
```

Next case add a inline-editing feature – for headers and other one-line texts.

This code make a `h1` tag with `page-geader` class an add `editablecontent` to there.

```
    use andrew72ru\pen\Pen;

    echo $form->field($model, 'title')->widget(Pen::className(), [
        'clientOptions' => [
            'inline' => true,
            'tag' => 'h1',
            'class' => 'page-header'
        ]
    ]);
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

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/de3029a42f4492f8c900a0ce2f2a05275471040c885b73750e9c7adda08a6019?d=identicon)[andrew72ru](/maintainers/andrew72ru)

---

Top Contributors

[![andrew72ru](https://avatars.githubusercontent.com/u/567649?v=4)](https://github.com/andrew72ru "andrew72ru (14 commits)")

### Embed Badge

![Health badge](/badges/andrew72ru-yii2-pen/health.svg)

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

PHPackages © 2026

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