PHPackages                             cyberitas/yii2-tinymce-processor - 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. cyberitas/yii2-tinymce-processor

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

cyberitas/yii2-tinymce-processor
================================

Yii 2 extension providing WordPress-style text processing from a TinyMCE editor

0.7.0(10y ago)126LGPL-3.0+PHPPHP &gt;= 5.5

Since Apr 6Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Cyberitas/yii2-tinymce-processor)[ Packagist](https://packagist.org/packages/cyberitas/yii2-tinymce-processor)[ Docs](https://github.com/Cyberitas/yii2-tinymce-processor)[ RSS](/packages/cyberitas-yii2-tinymce-processor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (4)Versions (9)Used By (0)

yii2-tinymce-processor
======================

[](#yii2-tinymce-processor)

[![Build Status](https://camo.githubusercontent.com/1b832d1a9df8247eb3f7a1fd85db38db6415454b3b2eba6a6d86b5939f516d43/68747470733a2f2f7472617669732d63692e6f72672f4379626572697461732f796969322d74696e796d63652d70726f636573736f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Cyberitas/yii2-tinymce-processor)[![Coverage Status](https://camo.githubusercontent.com/3922192f7f6c471189d8589777313581ae38d9e1e127a6f637d674a562e5512b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4379626572697461732f796969322d74696e796d63652d70726f636573736f722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/Cyberitas/yii2-tinymce-processor?branch=master)

Yii 2 extension providing WordPress-style text processing from a TinyMCE editor.

Features
--------

[](#features)

- [Essence](http://essence.github.io/essence/) oEmbed processing
- Texturization, replicating [`wptexturize()`](https://codex.wordpress.org/Function_Reference/wptexturize)
- Auto-paragraphing, replicating [`wpautop()`](https://codex.wordpress.org/Function_Reference/wpautop)
- [HTMLPurifier](http://htmlpurifier.org/) filtering, via Yii's [`HtmlPufirier` helper](http://www.yiiframework.com/doc-2.0/yii-helpers-htmlpurifier.html)
- Yii 2 asset bundle for easy editor insertion

Usage
-----

[](#usage)

```
composer require "cyberitas/yii2-tinymce-processor"
```

### Processor

[](#processor)

```
use Cyberitas\TinymceProcessor\TinymceProcessor;

$tmp = new TinymceProcessor(['config' => [
    'autop' => true,
    'essence' => true,
    'purify' => [
        'purifierConfig' => [
            'Attr.EnableId' => true
        ]
    ],
    'texturize' => [
        'leftDoubleQuote' => '&laquo;',
        'rightDoubleQuote' => '&raquo;'
    ]
]]);
$output = $tmp->process("This is some content from a TinyMCE editor.");
```

### Asset Bundle

[](#asset-bundle)

```
use Cyberitas\TinymceProcessor\Assets\TinymceAssets;
use yii\helpers\Html;
use yii\widgets\InputWidget;

class TinymceWidget extends InputWidget
{
    public function run()
    {
        TinymceAssets::register($this->view);
        $this->view->registerJs('tinymce.init({selector: "textarea"});');
        echo Html::textarea($this->name, $this->value);
    }
}
```

Copyright
---------

[](#copyright)

Copyright © 2016 [Cyberitas Technologies, LLC](http://www.cyberitas.com/). This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

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

Every ~2 days

Total

8

Last Release

3671d ago

PHP version history (2 changes)0.1.0PHP &gt;= 5.6

0.1.1PHP &gt;= 5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/25478a405435bb0df8adb3852f7da2a765be872dac568918767d2ff1f77c49a3?d=identicon)[scm6079](/maintainers/scm6079)

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

---

Top Contributors

[![jbhannah](https://avatars.githubusercontent.com/u/179194?v=4)](https://github.com/jbhannah "jbhannah (91 commits)")

---

Tags

textyii2wysiwygtinymce

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/cyberitas-yii2-tinymce-processor/health.svg)

```
[![Health](https://phpackages.com/badges/cyberitas-yii2-tinymce-processor/health.svg)](https://phpackages.com/packages/cyberitas-yii2-tinymce-processor)
```

###  Alternatives

[tinymce/tinymce

Web based JavaScript HTML WYSIWYG editor control.

1697.5M105](/packages/tinymce-tinymce)[yiidoc/yii2-redactor

Extension redactor for Yii2 Framework.

191618.8k47](/packages/yiidoc-yii2-redactor)[froala/yii2-froala-editor

A beautiful WYSIWYG HTML text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

109229.5k6](/packages/froala-yii2-froala-editor)[bizley/quill

Quill editor implementation for Yii 2.

64133.3k5](/packages/bizley-quill)[bizley/contenttools

ContentTools editor implementation for Yii 2.

8016.7k](/packages/bizley-contenttools)

PHPackages © 2026

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