gnixon05 / yii2-bootstrap5
Twitter Bootstrap 5 extension for the Yii framework
Installs: 39
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=7.3.21
- bower-asset/bootstrap: ^5.0.0
- yiisoft/yii2: ~2.0
README
Twitter Bootstrap 5 Extension for Yii 2
This is the Twitter Bootstrap extension for Yii framework 2.0. It encapsulates Bootstrap 5 components and plugins in terms of Yii widgets, and thus makes using Bootstrap components/plugins in Yii applications extremely easy.
This particular version is a clone of yiisoft Bootstrap 4 and updated using yiisoft Bootstrap 5 to ensure the appropriate classes and structure were utilized while maintaining proper compatability with Yii 2.
For license information check the LICENSE-file.
Documentation is at docs/guide/README.md.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist gnixon05/yii2-bootstrap5
or add
"gnixon05/yii2-bootstrap5": "dev"
to the require section of your composer.json
file.
Usage
For example, the following single line of code in a view file would render a Bootstrap Progress plugin:
<?= yii\bootstrap5\Progress::widget(['percent' => 60, 'label' => 'test']) ?>