Bootstrap 5 UI widgets for the EasePHP framework
desktop applicationUtilityapt install php-vitexsoftware-ease-bootstrap5-widgetsA collection of Bootstrap 5 UI widgets for the EasePHP framework, ready to use in PHP web applications.
Included widgets:
Object oriented PHP Framework for easy&fast writing small/middle sized apps.
<i> tag wrapperRenders a Bootstrap Icons <i class="bi bi-{name}"> tag. Drop-in for the removed FaIcon class.
// Pass the icon name (with or without the bi- prefix)
new \Ease\TWB5\Widgets\BsIcon('house');
new \Ease\TWB5\Widgets\BsIcon('bi-gear');
// With extra attributes
new \Ease\TWB5\Widgets\BsIcon('person-circle', ['aria-hidden' => 'true']);
Requires Bootstrap Icons CSS to be loaded in the page.
A Bootstrap 5 form with username and password fields ready to submit.
// Empty form
$form = new \Ease\TWB5\Widgets\LoginForm();
// Pre-filled username
$form = new \Ease\TWB5\Widgets\LoginForm('admin');
// Custom action
$form = new \Ease\TWB5\Widgets\LoginForm(null, null, ['action' => 'login.php']);
Password field wrapped in an input-group with a Bootstrap Icons eye toggle button.
$passwordField = new \Ease\TWB5\Widgets\PasswordInputShowHide('password', _('Password'));
Requires Bootstrap Icons CSS and jQuery.
Ease support for https://github.com/palcarazm/bootstrap5-toggle

new Ease\TWB5\Widgets\Toggle('swname', true, 1,['onText' => 'YES', 'offText' => 'NO']);
Bootstrap 5 dropdown-based language selector that integrates with Ease\Locale for internationalization.
// Basic usage
$langSelector = new \Ease\TWB5\Widgets\LangSelect();
// With custom URL parameter name (default is 'locale')
$langSelector = new \Ease\TWB5\Widgets\LangSelect('lang');
// With additional properties
$langSelector = new \Ease\TWB5\Widgets\LangSelect('locale', ['class' => 'dropdown my-custom-class']);
Features:
Ease\Localedata-bs-toggle attributesBootstrap 5 navigation-style language selector that displays languages as pills or tabs.
// Basic usage (nav pills style)
$langLinks = new \Ease\TWB5\Widgets\LangLinks();
// As navigation tabs
$langLinks = new \Ease\TWB5\Widgets\LangLinks(['class' => 'nav nav-tabs']);
// New Bootstrap 5 underline style
$langLinks = new \Ease\TWB5\Widgets\LangLinks(['class' => 'nav nav-underline']);
// Inline style
$langLinks = new \Ease\TWB5\Widgets\LangLinks(['class' => 'nav nav-pills d-inline-flex']);
// Vertical layout
$langLinks = new \Ease\TWB5\Widgets\LangLinks(['class' => 'nav flex-column']);
Features:
composer require vitexsoftware/ease-twbootstrap5-widgets
Older versions and its requirements https://packagist.org/packages/vitexsoftware/
For Debian, Ubuntu & friends please use repo:
sudo apt install php-vitexsoftware-ease-bootstrap5-widgets
In this case please add this to your app composer.json:
"require": {
"ease-bricks": "*"
},
"repositories": [
{
"type": "path",
"url": "/usr/share/php/EaseCore",
"options": {
"symlink": true
}
},
{
"type": "path",
"url": "/usr/share/php/EaseTWB5",
"options": {
"symlink": true
}
},
{
"type": "path",
"url": "/usr/share/php/EaseTWB5Widgets",
"options": {
"symlink": true
}
}
]
Homepage: https://www.vitexsoftware.cz/ease.php
GitHub: https://github.com/VitexSoftware/php-ease-bootstrap5-widgets
PhpDocumentor: https://www.vitexsoftware.cz/php-ease-bootstrap5-widgets/