brunohenriquebh / yii2-js-beautify
Js-beautify extension for Yii2
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- bower-asset/codemirror: 5.0.*
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-03-10 08:44:41 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.
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', ... ] ]); ?>