brunohenriquebh/yii2-js-beautify

Js-beautify extension for Yii2

Maintainers

Package info

github.com/brunohenriquebh/yii2-js-beautify

Issues

Type:yii2-extension

pkg:composer/brunohenriquebh/yii2-js-beautify

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

v1.2.0 2015-09-08 19:07 UTC

This package is not auto-updated.

Last update: 2026-03-09 13:17:42 UTC


README

This little beautifier will reformat and reindent bookmarklets, ugly JavaScript, unpack scripts packed by Dean Edward’s popular packer, as well as deobfuscate scripts processed by javascriptobfuscator.com. Extension for Yii2.

Yii2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist brunohenriquebh/yii2-js-beautify "*"

or add

"brunohenriquebh/yii2-js-beautify": "*"

to the require section of your composer.json file.

Usage

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

<?php 

use leandrogehlen\codemirror\CodeMirror;

<?= $form->field($file, 'description')->widget(CodeMirror::className(), [
    'pluginOptions' => [
        'mode' => 'application/x-httpd-php', 
        'theme' => 'solarized dark',
        ...
    ]
]);

?>