yii2-extensions/asset-bootstrap5

Asset for Bootstrap5 for Yii Framework

0.1.1 2024-01-23 19:02 UTC

This package is auto-updated.

Last update: 2024-04-23 19:46:53 UTC


README

68747470733a2f2f7777772e7969696672616d65776f726b2e636f6d2f696d6167652f7969695f6c6f676f5f6c696768742e737667

Asset bundle for Twitter Bootstrap 5.


php-version PHPUnit PHPUnit Codecov Infection

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist yii2-extensions/asset-bootstrap5:"^0.1"

or add

"yii2-extensions/asset-bootstrap5":"^0.1"

to the require section of your composer.json file.

Basic usage

<?php

declare(strict_types=1);

use Yii2\Asset\BootstrapAsset;

BootstrapAsset::register($this);
<?php

declare(strict_types=1);

use Yii2\Asset\BootstrapPluginAsset;

BootstrapPluginAsset::register($this);

CDN usage

<?php

declare(strict_types=1);

use Yii2\Asset\BootstrapCdnAsset;

BootstrapCdnAsset::register($this);
<?php

declare(strict_types=1);

use Yii2\Asset\BootstrapPluginCdnAsset;

BootstrapPluginCdnAsset::register($this);

Testing

Check the documentation testing to learn about testing.

Quality code

static-analysis phpstan-level style-ci

Support versions Yii2

Yii20 Yii22

Our social networks

Twitter

License

The MIT License. Please see License File for more information.