yiirocks / voyti-views-bootstrap5
Bootstrap5 views for Voyti user management library
Package info
github.com/YiiRocks/voyti-views-bootstrap5
pkg:composer/yiirocks/voyti-views-bootstrap5
Fund package maintenance!
Requires
- php: >=8.3
- yiirocks/voyti: ^1.0
- yiisoft/bootstrap5: ^1.0
- yiisoft/form-model: ^1.1
- yiisoft/html: ^4.0
- yiisoft/json: ^1.0
- yiisoft/view: ^12.0
- yiisoft/yii-dataview: ^1.1
Requires (Dev)
- friendsofphp/php-cs-fixer: @stable
- nyholm/psr7: ^1.8
- phpunit/phpunit: @stable
- rector/rector: ^2.1.1
- spatie/phpunit-snapshot-assertions: ^5.0
- yiirocks/toast-bootstrap5: ^1.0
- yiirocks/voyti-2fa: ^1.0
- yiisoft/code-style: ^1.1
- yiisoft/db-sqlite: ^2.0
- yiisoft/router-fastroute: ^4.0
Provides
- yiirocks/voyti-views: ^1.0
This package is auto-updated.
Last update: 2026-08-21 14:08:35 UTC
README
Stats for Nerds
Bootstrap5 HTML views for Voyti user management library: login, registration, account settings, profile, admin dashboard, and RBAC admin interfaces.
Provides the virtual package yiirocks/voyti-views, allowing future view implementations (Tailwind, etc.) as alternative packages.
Installation
composer require yiirocks/voyti-views-bootstrap5
This package implements the yiirocks/voyti-views interface required by Voyti. No additional setup needed.
Testing
Every view is rendered in a PHPUnit test with a strict error handler and locked in a markup snapshot, so contract drift between controllers and views fails CI instead of surfacing at runtime:
composer phpunit
Snapshots live next to their test classes in tests/View/__snapshots__/. After an intentional view change, regenerate them and review the diff:
UPDATE_SNAPSHOTS=true vendor/bin/phpunit
A smoke test renders every file under views/; adding a view without registering its fixture data in tests/Support/Fixtures.php fails the suite.