7 open-source packages, actively maintained

The missing pieces for your Yii Framework projects.

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

reCAPTCHA

reCAPTCHA

GitHub → Packagist → Documentation →

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');
SvgInline

SvgInline

GitHub → Packagist → Documentation →

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

SvgInline / Bootstrap

GitHub → Packagist → Documentation →

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

SvgInline / FontAwesome

GitHub → Packagist → Documentation →

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);
Voyti

Voyti

GitHub → Packagist → Documentation →

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

  • User management — Registration, email confirmation, login/logout with remember-me, password recovery, password expiration
  • Profile management — User profiles with gravatar, timezone, bio, and a personal website link
  • Identity switching — Admins can temporarily switch into another user's identity for support or debugging, then restore their own session with one click
  • RBAC — Full admin UI for roles, permissions, and rules with parent-child hierarchy, assignment management, and filtering
  • Social authentication — Various built-in auth clients
  • Two-factor authentication — TOTP (authenticator app) and email 2FA with enforced-per-permission support, plus one-time backup codes for account recovery
  • Password policies — Minimum complexity requirements, max age enforcement via middleware
  • Email change confirmation — Three modes: immediate, confirm new address, confirm both old and new
  • GDPR compliance — Consent management, data export, anonymized deletion with admin notification
  • Session management — Session tracking and termination
  • REST API — Optional JSON API for user CRUD
  • reCAPTCHA — Optional reCAPTCHA v2/v3 integration via yiirocks/recaptcha
  • i18n — Built-in translations for multiple languages
  • Themed views — Bootstrap 5 views shipped by default; mail templates separate and independently overridable
Yii / Bootstrap / Icons

Yii / Bootstrap / Icons

GitHub → Packagist →

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::i()->class('bi-alarm');
Yii2 / FontAwesome / inline

Yii2 / FontAwesome / inline

GitHub → Packagist → Documentation →

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']);