mitrii / yii2-embedjs
Embed JS with IDE checking or intellisense
dev-master
2015-08-10 06:13 UTC
This package is not auto-updated.
Last update: 2026-03-05 03:54:59 UTC
README
Embed JS with IDE checking or intellisense
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist mitrii/yii2-embedjs "*"
or add
"mitrii/yii2-embedjs": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?php \mitrii\widgets\Embedjs::begin(); ?> <script type="text/javascript"> console.log('Hello, world!'); </script> <?php \mitrii\widgets\Embedjs::end(); ?>