PHPackages                             voodoo-mobile/yii2-imperavi-widget - 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. voodoo-mobile/yii2-imperavi-widget

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

voodoo-mobile/yii2-imperavi-widget
==================================

The imperavi redactor widget for Yii 2 framework.

1.3.3(9y ago)02.8kBSD-3-ClauseJavaScript

Since Jul 5Pushed 9y ago2 watchersCompare

[ Source](https://github.com/voodoo-mobile/yii2-imperavi-widget)[ Packagist](https://packagist.org/packages/voodoo-mobile/yii2-imperavi-widget)[ Docs](https://github.com/vova07/yii2-imperavi-widget)[ RSS](/packages/voodoo-mobile-yii2-imperavi-widget/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)Dependencies (4)Versions (30)Used By (0)

Imperavi Redactor Widget for Yii 2
==================================

[](#imperavi-redactor-widget-for-yii-2)

[![Latest Version](https://camo.githubusercontent.com/bfc34264bd9fdef0e8737d7b20d48ad9df6ad3642cc1caa5100d4b6eb425424f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f766f766130372f796969322d696d7065726176692d7769646765742e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://github.com/vova07/yii2-imperavi-widget/releases)[![Software License](https://camo.githubusercontent.com/b60331a2084501dc07cf6d6964c0da58dd005d89c45cf3b28b4b22b60f5ec00f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4253442d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/428180f3350285eac6ab714b16a9e6054f3d84fa95f9264262553edf16a297d6/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f766f766130372f796969322d696d7065726176692d7769646765742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/vova07/yii2-imperavi-widget)[![Coverage Status](https://camo.githubusercontent.com/24520a6a3442e57b3ea178596310b9198683bd0b6d3c92e6453c2367329789b3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f766f766130372f796969322d696d7065726176692d7769646765742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/vova07/yii2-imperavi-widget/code-structure)[![Quality Score](https://camo.githubusercontent.com/28637756197eed597d5cd40f8bcc4228b2bfe8c6f5b8607903380993bf0339fc/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f766f766130372f796969322d696d7065726176692d7769646765742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/vova07/yii2-imperavi-widget)[![Total Downloads](https://camo.githubusercontent.com/7906e1409d2d747627b68491cb010de58c05a8a763cd26d6ee0a7027b520e4b2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f766f766130372f796969322d696d7065726176692d7769646765742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vova07/yii2-imperavi-widget)

`Imperavi Redactor Widget` is a wrapper for [Imperavi Redactor](http://imperavi.com/redactor/), a high quality WYSIWYG editor.

Note that Imperavi Redactor itself is a proprietary commercial copyrighted software but since Yii community bought OEM license you can use it for free with Yii.

Install
-------

[](#install)

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

Either run

```
$ php composer.phar require --prefer-dist vova07/yii2-imperavi-widget "*"
```

or add

```
"vova07/yii2-imperavi-widget": "*"
```

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

Usage
-----

[](#usage)

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

### Like a widget

[](#like-a-widget)

```
echo \vova07\imperavi\Widget::widget([
    'name' => 'redactor',
    'settings' => [
        'lang' => 'ru',
        'minHeight' => 200,
        'plugins' => [
            'clips',
            'fullscreen'
        ]
    ]
]);
```

### Like an ActiveForm widget

[](#like-an-activeform-widget)

```
use vova07\imperavi\Widget;

echo $form->field($model, 'content')->widget(Widget::className(), [
    'settings' => [
        'lang' => 'ru',
        'minHeight' => 200,
        'plugins' => [
            'clips',
            'fullscreen'
        ]
    ]
]);
```

### Like a widget for a predefined textarea

[](#like-a-widget-for-a-predefined-textarea)

```
echo \vova07\imperavi\Widget::widget([
    'selector' => '#my-textarea-id',
    'settings' => [
        'lang' => 'ru',
        'minHeight' => 200,
        'plugins' => [
            'clips',
            'fullscreen'
        ]
    ]
]);
```

### Add images that have already been uploaded

[](#add-images-that-have-already-been-uploaded)

```
// DefaultController.php
public function actions()
{
    return [
        'images-get' => [
            'class' => 'vova07\imperavi\actions\GetAction',
            'url' => 'http://my-site.com/images/', // Directory URL address, where files are stored.
            'path' => '@alias/to/my/path', // Or absolute path to directory where files are stored.
            'type' => GetAction::TYPE_IMAGES,
        ]
    ];
}

// View.php
echo \vova07\imperavi\Widget::widget([
    'selector' => '#my-textarea-id',
    'settings' => [
        'lang' => 'ru',
        'minHeight' => 200,
        'imageManagerJson' => Url::to(['/default/images-get']),
        'plugins' => [
            'imagemanager'
        ]
    ]
]);
```

### Add files that have already been uploaded

[](#add-files-that-have-already-been-uploaded)

```
// DefaultController.php
public function actions()
{
    return [
        'files-get' => [
            'class' => 'vova07\imperavi\actions\GetAction',
            'url' => 'http://my-site.com/files/', // Directory URL address, where files are stored.
            'path' => '@alias/to/my/path', // Or absolute path to directory where files are stored.
            'type' => GetAction::TYPE_FILES,
        ]
    ];
}

// View.php
echo \vova07\imperavi\Widget::widget([
    'selector' => '#my-textarea-id',
    'settings' => [
        'lang' => 'ru',
        'minHeight' => 200,
        'fileManagerJson' => Url::to(['/default/files-get']),
        'plugins' => [
            'filemanager'
        ]
    ]
]);
```

### Upload image

[](#upload-image)

```
// DefaultController.php
public function actions()
{
    return [
        'image-upload' => [
            'class' => 'vova07\imperavi\actions\UploadAction',
            'url' => 'http://my-site.com/images/', // Directory URL address, where files are stored.
            'path' => '@alias/to/my/path' // Or absolute path to directory where files are stored.
        ],
    ];
}

// View.php
echo \vova07\imperavi\Widget::widget([
    'selector' => '#my-textarea-id',
    'settings' => [
        'lang' => 'ru',
        'minHeight' => 200,
        'imageUpload' => Url::to(['/default/image-upload'])
    ]
]);
```

### Upload file

[](#upload-file)

```
// DefaultController.php
public function actions()
{
    return [
        'file-upload' => [
            'class' => 'vova07\imperavi\actions\UploadAction',
            'url' => 'http://my-site.com/files/', // Directory URL address, where files are stored.
            'path' => '@alias/to/my/path', // Or absolute path to directory where files are stored.
            'uploadOnlyImage' => false, // For not image-only uploading.
        ],
    ];
}

// View.php
echo \vova07\imperavi\Widget::widget([
    'selector' => '#my-textarea-id',
    'settings' => [
        'lang' => 'ru',
        'minHeight' => 200,
        'fileUpload' => Url::to(['/default/file-upload'])
    ]
]);
```

### Add custom plugins

[](#add-custom-plugins)

```
echo \vova07\imperavi\Widget::widget([
    'selector' => '#my-textarea-id',
    'settings' => [
        'lang' => 'ru',
        'minHeight' => 200,
        'plugins' => [
            'clips',
            'fullscreen'
        ]
    ],
    'plugins' => [
        'my-custom-plugin' => 'app\assets\MyPluginBundle'
    ]
]);
```

Testing
-------

[](#testing)

```
$ phpunit
```

Further Information
-------------------

[](#further-information)

Please, check the [Imperavi Redactor](http://imperavi.com/redactor/) documentation for further information about its configuration options.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Vasile Crudu](https://github.com/vova07)
- [All Contributors](../../contributors)

License
-------

[](#license)

The BSD License (BSD). Please see [License File](LICENSE.md) for more information.

> [![YiiWheels](https://camo.githubusercontent.com/5661871ec7fa7d73a09528e76062be43cb79c941990004527a89807c0dc3d28a/687474703a2f2f796969776865656c732e636f6d2f696d672f6c6f676f2d6269672e706e67)](http://yiiwheels.com)
> [Available also on YiiWheels](http://yiiwheels.com)

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 91.5% 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 ~25 days

Recently: every ~55 days

Total

30

Last Release

3634d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/690fe9c695b36c27b53c0cf0f847579f7dc34d438eba2b42fc6f459e27253ef5?d=identicon)[voodoo-rocks](/maintainers/voodoo-rocks)

---

Top Contributors

[![vova07](https://avatars.githubusercontent.com/u/2714082?v=4)](https://github.com/vova07 "vova07 (65 commits)")[![maxmirazh33](https://avatars.githubusercontent.com/u/2692282?v=4)](https://github.com/maxmirazh33 "maxmirazh33 (4 commits)")[![aaiyo](https://avatars.githubusercontent.com/u/1450687?v=4)](https://github.com/aaiyo "aaiyo (1 commits)")[![ElisDN](https://avatars.githubusercontent.com/u/1673552?v=4)](https://github.com/ElisDN "ElisDN (1 commits)")

---

Tags

yii2extensionwidgetyiiwysiwygyii 2Redactorimperavi

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/voodoo-mobile-yii2-imperavi-widget/health.svg)

```
[![Health](https://phpackages.com/badges/voodoo-mobile-yii2-imperavi-widget/health.svg)](https://phpackages.com/packages/voodoo-mobile-yii2-imperavi-widget)
```

###  Alternatives

[vova07/yii2-imperavi-widget

The imperavi redactor widget for Yii 2 framework.

2401.0M40](/packages/vova07-yii2-imperavi-widget)

PHPackages © 2026

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