Yii.Rocks
PHP packages for the Yii Framework, crafted by Mr. 42.
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.
$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.
$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.
$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.
$assetManager->register(
\YiiRocks\Yii\Bootstrap\Icons\Assets\BootstrapIconsAsset::class,
);
echo '<i class="bi-alarm"></i>';
echo Html::tag('i', '', ['class' => 'bi-alarm']);
recaptcha provides Google reCAPTCHA v2 and v3 field + server-side validation for your Yii Framework 3 applications.
Various options are available to manipulate the result.
echo RecaptchaV2Field::field($form, 'captcha')
->withSiteKey($siteKey);
echo RecaptchaV3Field::field($form, 'captcha')
->withAction('login')
->withFormId('login-form');
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.
$icon = new \thoulah\fontawesome\Icon();
echo $icon->show('github', ['style' => 'brands', 'fill' => '#003865']);