yiirocks/voyti

Highly customizable and extensible user management, authentication, and authorization Yii3 extension

Maintainers

Package info

github.com/YiiRocks/voyti

Homepage

pkg:composer/yiirocks/voyti

Transparency log

Fund package maintenance!

YiiRocks

Statistics

Installs: 25

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 3

dev-main / 1.0.x-dev 2026-07-28 12:26 UTC

This package is auto-updated.

Last update: 2026-07-28 12:32:27 UTC


README

войти
/vɐjˈtʲi/
verb

"to enter" or "to log in"

Highly customizable and extensible user management, authentication, and authorization extension for Yii Framework 3.

Originally ported from Usuario, Voyti has since been rebuilt around modern PSR standards and Yiisoft components. It has been extensively redesigned to provide a flexible, modular foundation that adapts to a wide range of authentication and authorization requirements.

Packagist Version PHP from Packagist Packagist GitHub GitHub Workflow Status

Stats for Nerds

Coverage MSI Tests Assertions

Features

  • 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
  • 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
  • RBAC Management — Full admin UI for roles, permissions, and rules with parent-child hierarchy, assignment management, and filtering
  • Identity Switching — Admins can temporarily switch into another user's identity for support or debugging, then restore their own session with one click
  • Session Management — Session tracking and termination
  • GDPR Compliance — Consent management, data export, anonymized deletion with admin notification
  • Password Policies — Minimum complexity requirements, max age enforcement via middleware
  • Email Change Confirmation — Three modes: immediate, confirm new address, confirm both old and new
  • REST API — Optional JSON API for user CRUD
  • CAPTCHA — 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

Requirements

  • PHP 8.3+
  • ext-intl
  • Various yiisoft packages (automatic installation via composer)

Installation

The package could be installed via composer:

composer require yiirocks/voyti

Documentation

Installation steps, the full configuration reference, routes, middleware, social auth setup, RBAC, console commands, and events are all covered at Yii.Rocks.

Testing

# Unit tests
composer phpunit

# Mutation testing
composer infection

# Static analysis
composer psalm

# Code style fixer
composer php-cs-fixer

See docs/internals.md for details on the testing/QA tooling.