Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/johnsnook/yii2-bootstrap4-card

A yii2 card widget for use with the yii2-bootstrap4 library
https://github.com/johnsnook/yii2-bootstrap4-card

Last synced: about 2 months ago
JSON representation

A yii2 card widget for use with the yii2-bootstrap4 library

Awesome Lists containing this project

README

        

Bootstrap 4 Card Widget
=======================
It's a widget that encapsulates bootstrap cards.

Installation
------------

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

Either run

```
php composer.phar require --prefer-dist johnsnook/yii2-bootstrap4-card "*"
```

or add

```
"johnsnook/yii2-bootstrap4-card": "*"
```

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

Usage
-----

Once the extension is installed, simply use it in your code by :

```php
['class' => 'bg-secondary'],
'title' => 'Top card',
'body' => $aBunchOfHtml,
]);
/* OR */
echo Card::begin([
'containerOptions' => ['class' => 'border border-secondary'],
'headerOptions' => ['class' => 'bg-dark text-white'],
'title' => 'Top card',
]);
?>


= echo CardlWidget::end();
```

[.](https://snooky.biz/post/section/Ragedump) [.](https://snooky.biz/post/the-sixth-general-order) [.](https://snooky.biz/post/legal-threats) [.](https://snooky.biz/post/taking-out-the-trash) [.](https://snooky.biz/post/jeez-babe-i-dont-know-whats-wrong) [.](https://snooky.biz/post/my-stupid-vitriol) [.](https://snooky.biz/post/the-drama-train-just-keeps-a-chuggin) [.](https://snooky.biz/post/hypocrisy) [.](https://snooky.biz/post/marjorie-snook-isnt-your-name) [.](https://snooky.biz/post/inconstant-hooer) [.](https://snooky.biz/post/mother-of-the-year)