Skip to content

Commit

Permalink
Update to Bootstrap 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingston-kms committed Oct 23, 2022
1 parent 260c089 commit 5322d38
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 16 deletions.
40 changes: 25 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@

You can see demo application on http://yii2-mdb-demo.dtkms.ru/

# Bootstrap 4: yii2-mdbootstrap
Extension to asset MDBootstrap Free with Bootstrap 4 in Yii2 Projects
# Packagist
Extension to asset MDB Bootstrap Assets Free in Yii2 Projects

[![Packagist Version (custom server)](https://img.shields.io/packagist/v/kingston-kms/yii2-mdbootstrap?style=plastic)](https://packagist.org/packages/kingston-kms/yii2-mdbootstrap)

## Installation Bootstrap 4
# Installation Bootstrap 4

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Expand Down Expand Up @@ -53,25 +53,20 @@ MDBootstrapAsset::register($this);
MDBootstrapPluginAsset::register($this);
```

# Bootstrap 5: yii2-mdb-ui-kit
Extension to asset MDBootstrap Free with Bootstrap 4 in Yii2 Projects

[![Packagist Version (custom server)](https://img.shields.io/packagist/v/kingston-kms/yii2-mdbootstrap?style=plastic)](https://packagist.org/packages/kingston-kms/yii2-mdbootstrap)

## Installation Bootstrap 4
# Installation Bootstrap 5

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require kingston-kms/yii2-mdbootstrap:~1
composer require kingston-kms/yii2-mdbootstrap:~2
```

or add

```
"kingston-kms/yii2-mdbootstrap": "~1"
"kingston-kms/yii2-mdbootstrap": "~2"
```

to the require section of your `composer.json` file.
Expand All @@ -80,11 +75,26 @@ to the require section of your `composer.json` file.

Add use statement in your view file:
```
use kingston\mdbootstrap\MDBootstrapAsset;
use kingston\mdbootstrap\MDBootstrapPluginAsset;
use kingston\yii2mdbuikit\MdbUiKitAsset;
use kingston\yii2mdbuikit\MdbUiKitPluginAsset;
```
and register assets in view:
```
MDBootstrapAsset::register($this);
MDBootstrapPluginAsset::register($this);
MdbUiKitAsset::register($this);
MdbUiKitPluginAsset::register($this);
```

Dark Theme
```
use kingston\yii2mdbuikit\MdbUiKitDarkAsset;
```

RTL Version Assets
```
use kingston\yii2mdbuikit\MdbUiKitRtlAsset;
```

Dark RTL Version Assets
```
use kingston\yii2mdbuikit\MdbUiKitDarkRtlAsset;
```
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kingston-kms/yii2-mdbootstrap",
"description": "Extension to asset MDBootstrap Free with Bootstrap 5 in Yii2 Projects",
"description": "Extension to asset MDBootstrap Free with Bootstrap in Yii2 Projects",
"type": "yii2-extension",
"keywords": ["yii","yii2","bootstrap","mdb-ui-kit","bootstrap5","mdbootstrap","yii2-extension","material design"],
"license": "BSD-3-Clause",
Expand Down

0 comments on commit 5322d38

Please sign in to comment.