7 open-source packages, actively maintained

The missing pieces for your Yii Framework projects.

Small, focused libraries that drop straight into your Yii apps.

Overview

Documentation

Full details, usage examples and links for every package.

🖼️

SvgInline

Documentation → GitHub →

Provides simple functions for your Yii Framework 3 applications to add SVG files inline and manipulate their properties. Can be extended with Bootstrap Icons and Font Awesome Icons, with various options available to manipulate the result.

$svg->file('@vendor/path/icon.svg');
🎨

SvgInline / Bootstrap

Documentation → GitHub →

Provides simple functions for your Yii Framework 3 applications to add Bootstrap Icons inline. Depends on SvgInline, with various options available to manipulate the result.

$svg->bootstrap($iconName);

SvgInline / FontAwesome

Documentation → GitHub →

Provides simple functions for your Yii Framework 3 applications to add Font Awesome Icons inline. Depends on SvgInline, with various options available to manipulate the result.

$svg->fai($iconName);
$svg->fai($iconName, $iconStyle);
📦

Yii / Bootstrap / Icons

GitHub →

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

Documentation → GitHub →

Provides Google reCAPTCHA v2 and v3 field and server-side validation for your Yii Framework 3 applications, with various options available to manipulate the result.

echo RecaptchaV2Field::field($form, 'captcha')
    ->withSiteKey($siteKey);

echo RecaptchaV3Field::field($form, 'captcha')
    ->withAction('login')
    ->withFormId('login-form');
🔐

Voyti

Documentation → GitHub →

Provides highly customizable user management, authentication, and authorization for your Yii Framework 3 applications.

  • User management — registration, email confirmation, login/logout, password recovery
  • RBAC — full admin UI for roles, permissions, and rules
  • Social authentication — 9 built-in providers
  • Two-factor authentication — TOTP, email, SMS
  • GDPR compliance — consent management, data export, anonymized deletion
  • Session management — history tracking and termination
  • REST API — optional JSON API for user CRUD
  • reCAPTCHA — optional v2/v3 integration
  • i18n — multiple built-in translations

yii2-fontawesome-inline

Documentation → GitHub →

Provides simple functions for your Yii Framework 2.0 applications to add Font Awesome Icons inline, with various options available to manipulate the result.

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