mitrii/yii2-embedjs

Embed JS with IDE checking or intellisense

Installs: 3 315

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

Type:yii2-extension

dev-master 2015-08-10 06:13 UTC

This package is not auto-updated.

Last update: 2024-09-18 20:34:10 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(); ?>