Skip to content

Yii2 extension for embed JS with IDE checking or intellisense

Notifications You must be signed in to change notification settings

mitrii/yii2-embedjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Yii2 embed JS

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(); ?>

About

Yii2 extension for embed JS with IDE checking or intellisense

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages