shqear/yii2-embedcss

Embed Css with IDE checking or intellisense.

Installs: 26

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0 2016-06-30 13:31 UTC

This package is not auto-updated.

Last update: 2024-05-09 00:57:36 UTC


README

thanks for mitrii/yii2-embedjs

Yii2 embed Css

Embed Css with IDE checking or intellisense

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist shqear/yii2-embedcss "*"

or add

"shqear/yii2-embedcss": "*"

to the require section of your composer.json file.

Usage

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

<?php \shqear\widgets\EmbedCss::begin(); ?>
<style type="text/css">
    html { background: red; }
</style>
<?php \shqear\widgets\EmbedCss::end(); ?>

Or with 'depends' option

<?php \shqear\widgets\EmbedCss::begin(['depends' => '\yii\web\JqueryAsset']); ?>
<style>
    html { background: red; }
</style>
<?php \shqear\widgets\EmbedCss::end(); ?>