Yii.Rocks Yii.Rocks

simple-html-dom configures voku/simple_html_dom.

Quick usage:
use YiiRocks\SimpleHtmlDom\SimpleHtmlDomInterface;

class Class {
    private SimpleHtmlDomInterface $dom;

    __construct(SimpleHtmlDomInterface $dom) {
            $this->dom = $dom;
    }
}
Available options can be found in the API Readme.

svg-inline provides simple functions for your Yii Framework 3 applications to add SVG Files inline and manipulate its properties. It can be extended with and .

Various options are available to manipulate the result.

Quick usage:
$svg->file('@vendor/path/icon.svg');

svg-inline-bootstrap provides simple functions for your Yii Framework 3 applications to add Bootstrap Icons inline and depends on .

Various options are available to manipulate the result.

Quick usage:
$svg->bootstrap($iconName);

svg-inline-fontawesome provides simple functions for your Yii Framework 3 applications to add Font Awesome Icons inline and depends on .

Various options are available to manipulate the result.

Quick usage:
$svg->fai($iconName);
$svg->fai($iconName, $iconStyle);

yii-bootstrap-icons provides the Asset Bundle to use Bootstrap Icons in your project.

All valid icons can be found on the Bootstrap Icons page.

Quick usage:
$assetManager->register([
    \YiiRocks\Yii\Bootstrap\Icons\Assets\BootstrapIconsAsset::class,
]);

echo '<i class="bi-alarm"></i>';
echo Html::tag('i', '', ['class' => 'bi-alarm']);

yii2-fontawesome-inline provides simple functions for your Yii Framework 2.0 applications to add Font Awesome Icons inline.

Various options are available to manipulate the result.

Quick usage:
$icon = new \thoulah\fontawesome\Icon();
echo $icon->show('github', ['style' => 'brands', 'fill' => '#003865']);