Skip to content

Commit

Permalink
Merge branch 'bs5'
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingston-kms committed Oct 23, 2022
2 parents 3e8dac0 + 1ed4fa0 commit 260c089
Show file tree
Hide file tree
Showing 9 changed files with 122 additions and 43 deletions.
43 changes: 39 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,50 @@

</p>

# yii2-mdbootstrap
# Demo

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 Version (custom server)](https://img.shields.io/packagist/v/kingston-kms/yii2-mdbootstrap?style=plastic)](https://packagist.org/packages/kingston-kms/yii2-mdbootstrap)

## Demo
## Installation Bootstrap 4

You can see demo application on http://yii2-mdb-demo.dtkms.ru/
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

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

or add

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

to the require section of your `composer.json` file.

## Usage

Add use statement in your view file:
```
use kingston\mdbootstrap\MDBootstrapAsset;
use kingston\mdbootstrap\MDBootstrapPluginAsset;
```
and register assets in view:
```
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

Expand Down Expand Up @@ -52,4 +88,3 @@ and register assets in view:
MDBootstrapAsset::register($this);
MDBootstrapPluginAsset::register($this);
```
# yii2-mdb-ui-kit
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "kingston-kms/yii2-mdbootstrap",
"description": "Extension to asset MDBootstrap Free with Bootstrap 4 in Yii2 Projects",
"description": "Extension to asset MDBootstrap Free with Bootstrap 5 in Yii2 Projects",
"type": "yii2-extension",
"keywords": ["yii","yii2","bootstrap","bootstrap4","mdbootstrap","yii2-extension","material design"],
"keywords": ["yii","yii2","bootstrap","mdb-ui-kit","bootstrap5","mdbootstrap","yii2-extension","material design"],
"license": "BSD-3-Clause",
"version": "2.0.0",
"authors": [
{
"name": "Sergey Budnikov",
Expand All @@ -12,10 +13,10 @@
],
"minimum-stability": "stable",
"require": {
"php": ">=5.4.0",
"php": ">=7.2.0",
"yiisoft/yii2": "~2.0",
"yiisoft/yii2-bootstrap4": "~2.0",
"npm-asset/mdbootstrap": "~4"
"yiisoft/yii2-bootstrap5": "~2.0",
"npm-asset/mdb-ui-kit": "~5"
},
"repositories": [
{
Expand All @@ -25,7 +26,7 @@
],
"autoload": {
"psr-4": {
"kingston\\mdbootstrap\\": "src"
"kingston\\yii2mdbuikit\\": "src"
}
}
}
15 changes: 0 additions & 15 deletions src/MDBootstrapAsset.php

This file was deleted.

18 changes: 0 additions & 18 deletions src/MDBootstrapPluginAsset.php

This file was deleted.

15 changes: 15 additions & 0 deletions src/MdbUiKitAsset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
namespace kingston\yii2mdbuikit;

use yii\web\AssetBundle;

class MdbUiKitAsset extends AssetBundle
{
public $sourcePath = '@npm/mdb-ui-kit';
public $css = [
'css/mdb.min.css',
];
public $depends = [
'yii\bootstrap5\BootstrapAsset',
];
}
15 changes: 15 additions & 0 deletions src/MdbUiKitDarkAsset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
namespace kingston\yii2mdbuikit;

use yii\web\AssetBundle;

class MdbUiKitDarkAsset extends AssetBundle
{
public $sourcePath = '@npm/mdb-ui-kit';
public $css = [
'css/mdb.dark.min.css',
];
public $depends = [
'yii\bootstrap5\BootstrapAsset',
];
}
15 changes: 15 additions & 0 deletions src/MdbUiKitDarkRtlAsset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
namespace kingston\yii2mdbuikit;

use yii\web\AssetBundle;

class MdbUiKitDarkRtlAsset extends AssetBundle
{
public $sourcePath = '@npm/mdb-ui-kit';
public $css = [
'css/mdb.dark.rtl.min.css',
];
public $depends = [
'yii\bootstrap5\BootstrapAsset',
];
}
16 changes: 16 additions & 0 deletions src/MdbUiKitPluginAsset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
namespace kingston\yii2mdbuikit;

use yii\web\AssetBundle;

class MdbUiKitPluginAsset extends AssetBundle
{
public $sourcePath = '@npm/mdb-ui-kit';
public $js = [
'js/mdb.min.js'
];
public $depends = [
'yii\web\JqueryAsset',
'yii\bootstrap5\BootstrapPluginAsset',
];
}
15 changes: 15 additions & 0 deletions src/MdbUiKitRtlAsset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
namespace kingston\yii2mdbuikit;

use yii\web\AssetBundle;

class MdbUiKitRtlAsset extends AssetBundle
{
public $sourcePath = '@npm/mdb-ui-kit';
public $css = [
'css/mdb.rtl.min.css',
];
public $depends = [
'yii\bootstrap5\BootstrapAsset',
];
}

0 comments on commit 260c089

Please sign in to comment.