PHPackages                             drexlerux/yii2-roxymce - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. drexlerux/yii2-roxymce

ActiveYii2-extension[File &amp; Storage](/categories/file-storage)

drexlerux/yii2-roxymce
======================

Integrate tinymce + roxy manager to yii2

v1.0.0(8y ago)024MITJavaScript

Since Sep 23Pushed 8y agoCompare

[ Source](https://github.com/drexlerux/yii2-roxymce)[ Packagist](https://packagist.org/packages/drexlerux/yii2-roxymce)[ Docs](https://diclearn.com)[ RSS](/packages/drexlerux-yii2-roxymce/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (4)Versions (1)Used By (0)

RoxyMce - Beautiful File manager for Tinymce
============================================

[](#roxymce---beautiful-file-manager-for-tinymce)

This allow to integrate [TinyMce](https://github.com/tinymce/tinymce) 4 with [Roxy Fileman](http://roxyfileman.com)

User story
----------

[](#user-story)

I'm try to find a good file manager for tinymce for a long time.
elFinder is good, but too much function and it's not my style. MoxieManager maybe best with tinymce, but it's too much for me.
One day, I saw roxyman, immediately, I know it is all I need.
Install
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#im-try-to-find-a-good-file-manager-for-tinymce-for-a-long-timeelfinder-is-good-but-too-much-function-and-its-not-my-style-moxiemanager-maybe-best-with-tinymce-but-its-too-much-for-meone-day-i-saw-roxyman-immediately-i-know-it-is-all-i-needinstall)

Preferred way to install this extension through [composer](http://getcomposer.org)
Either run

```
composer require drexlerux/yii2-roxymce "*"

```

Or add to `require` section of `composer.json` then run `composer update`

```
"drexlerux/yii2-roxymce" : "*"

```

Configure
---------

[](#configure)

Just add to `config/web.php`

### Simple config

[](#simple-config)

```
[php]
	'modules'    => [
		'roxymce'  => [
			'class' => '\drexlerux\roxymce\Module',
		]
	]

```

### Advanced config

[](#advanced-config)

```
[php]
	'modules'    => [
		'roxymce'  => [
			'class' => '\drexlerux\roxymce\Module',
			'config'=> [
			//all below is not required
				'FILES_ROOT'           => 'uploads/image', //The root directory of roxymce's resource, where can be uploaded to. if not existed, Roxy will auto create
				'DEFAULTVIEW'          => 'list', //default view when you call roxymce (thumb/list)
				'THUMBS_VIEW_WIDTH'    => '100', //default width of thumbs when thumb view activated
				'THUMBS_VIEW_HEIGHT'   => '100', //default height of thumbs when thumb view activated
				'MAX_IMAGE_WIDTH'      => '1000', //default maximum width of image allowed to upload
				'MAX_IMAGE_HEIGHT'     => '1000', //default maximum height of image allowed to upload
				'FORBIDDEN_UPLOADS'    => 'zip js jsp jsb mhtml mht xhtml xht php phtml php3 php4 php5 phps shtml jhtml pl sh py cgi exe application gadget hta cpl msc jar vb jse ws wsf wsc wsh ps1 ps2 psc1 psc2 msh msh1 msh2 inf reg scf msp scr dll msi vbs bat com pif cmd vxd cpl htpasswd htaccess', //default forbidden upload files extension
				'ALLOWED_UPLOADS'      => 'jpeg jpg png gif mov mp3 mp4 avi wmv flv mpeg', //default allowed upload files extension
				'FILEPERMISSIONS'      => '0644', //default file permissions
				'DIRPERMISSIONS'       => '0755', //default folder permissions
				'LANG'                 => 'en', //fix language interface. if NOT SET, language interface will auto follow Yii::$app->language
				'DATEFORMAT'           => 'dd/MM/yyyy HH:mm', //default datetime format
				'OPEN_LAST_DIR'        => 'yes', //default roxymce will open last dir where you leave
			]
		],
	],

```

Usage
-----

[](#usage)

In your view file, call roxymce widget

### Include ActiveRecord Model

[](#include-activerecord-model)

```
[php]
//example in action create
$model = new Post();
//example in action update
$model = Post::findOne(['id' => 1]);
echo \drexlerux\roxymce\widgets\RoxyMceWidget::widget([
	'model'       => $model, //your Model, REQUIRED
	'attribute'   => 'content', //attribute name of your model, REQUIRED if using 'model' section
	'name'        => 'Post[content]', //default name of textarea which will be auto generated, NOT REQUIRED if using 'model' section
	'value'       => isset($_POST['Post']['content']) ? $_POST['Post']['content'] : $model->content, //default value of current textarea, NOT REQUIRED
	'action'      => Url::to(['roxymce/default']), //default roxymce action route, NOT REQUIRED
	'options'     => [//TinyMce options, NOT REQUIRED, see https://www.tinymce.com/docs/
		'title' => 'RoxyMCE',//title of roxymce dialog, NOT REQUIRED
	],
	'htmlOptions' => [],//html options of this widget, NOT REQUIRED
]);

```

### Sample HTML without ActiveRecord Model

[](#sample-html-without-activerecord-model)

```
[php]
echo \drexlerux\roxymce\widgets\RoxyMceWidget::widget([
	'name'        => 'content', //default name of textarea which will be auto generated, REQUIRED if not using 'model' section
	'value'       => isset($_POST['content']) ? $_POST['content'] : '', //default value of current textarea, NOT REQUIRED
	'action'      => Url::to(['roxymce/default']), //default roxymce action route, NOT REQUIRED
	'options'     => [//TinyMce options, NOT REQUIRED, see https://www.tinymce.com/docs/
		'title' => 'RoxyMCE',//title of roxymce dialog, NOT REQUIRED
	],
	'htmlOptions' => [],//html options of this widget, NOT REQUIRED
]);

```

### Sample HTML Input Demo

[](#sample-html-input-demo)

```
[php]

use yii\bootstrap\Modal;
Modal::begin([
    'header' => 'Hello world',
    'size' => Modal::SIZE_LARGE,
    'id' => "modal"
    //'toggleButton' => ['label' => 'click me'],
]);
echo "";

Modal::end();
[html]

Choose Picture
[javascript]

    function demoPopup() {
        $('#modal').modal('show');
        return false;
    }

```

Screenshot &amp; Demo
---------------------

[](#screenshot--demo)

### Demo

[](#demo)

Please referrence to [RoxyFileMan demo](http://www.roxyfileman.com/demo) and scroll down to TinyMce section

### Thumb view

[](#thumb-view)

[![thumbview](https://camo.githubusercontent.com/1446ff77c2833972500103e8bcf95fc22000ce29bea7f22e3c043dcd239e72a6/687474703a2f2f692e696d6775722e636f6d2f6d4561736371302e706e67)](https://camo.githubusercontent.com/1446ff77c2833972500103e8bcf95fc22000ce29bea7f22e3c043dcd239e72a6/687474703a2f2f692e696d6775722e636f6d2f6d4561736371302e706e67)

### List view

[](#list-view)

[![listview](https://camo.githubusercontent.com/b4f71b94e18ffe450089cb1ae95c2faf724208964be9b728618bdb52c51dff18/687474703a2f2f692e696d6775722e636f6d2f496b4139326b4b2e706e67)](https://camo.githubusercontent.com/b4f71b94e18ffe450089cb1ae95c2faf724208964be9b728618bdb52c51dff18/687474703a2f2f692e696d6775722e636f6d2f496b4139326b4b2e706e67)

### Upload view

[](#upload-view)

[![upload](https://camo.githubusercontent.com/6443c8700191a574dccd7ec6c61308857b57fedafc3260604a3a16a655f03be7/687474703a2f2f692e696d6775722e636f6d2f397a767046544d2e706e67)](https://camo.githubusercontent.com/6443c8700191a574dccd7ec6c61308857b57fedafc3260604a3a16a655f03be7/687474703a2f2f692e696d6775722e636f6d2f397a767046544d2e706e67)

Resource
--------

[](#resource)

- [TinyMce](http://tinymce.com)
- [RoxyFileMan](http://roxyfileman.com)
- [Project root](https://github.com/drexlerux/yii2-roxymce)

Bugs &amp; Issues
-----------------

[](#bugs--issues)

Found some bugs? Just [create an issue](https://github.com/drexlerux/yii2-roxymce/issues/new) or [fork it](https://github.com/drexlerux/yii2-roxymce) and send pull request

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Unknown

Total

1

Last Release

3202d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29631825?v=4)[Carlos Porras](/maintainers/drexlerux)[@drexlerux](https://github.com/drexlerux)

---

Top Contributors

[![drexlerux](https://avatars.githubusercontent.com/u/29631825?v=4)](https://github.com/drexlerux "drexlerux (1 commits)")

---

Tags

yii2tinymcefile managerroxydrexleruxfileman

### Embed Badge

![Health badge](/badges/drexlerux-yii2-roxymce/health.svg)

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

###  Alternatives

[zxbodya/yii2-elfinder

Extension to use elFinder 1.x file manager in Yii2 application

1036.5k3](/packages/zxbodya-yii2-elfinder)[craftcms/aws-s3

Amazon S3 integration for Craft CMS

631.5M28](/packages/craftcms-aws-s3)[mafftor/laravel-file-manager

The file manager intended for using Laravel with CKEditor / TinyMCE / Colorbox

3619.7k](/packages/mafftor-laravel-file-manager)[rkit/filemanager-yii2

FileManager for Yii2

181.3k](/packages/rkit-filemanager-yii2)

PHPackages © 2026

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