PHPackages                             m-comscience/yii2-widget-bootstrap-table - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. m-comscience/yii2-widget-bootstrap-table

ActiveYii2-extension[Framework](/categories/framework)

m-comscience/yii2-widget-bootstrap-table
========================================

Bootstrap Tables widget for Yii2 framework

v1.0.0(7y ago)01.8k1BSD-3-ClausePHP

Since Nov 26Pushed 7y ago1 watchersCompare

[ Source](https://github.com/MComScience/yii2-widget-bootstrap-table)[ Packagist](https://packagist.org/packages/m-comscience/yii2-widget-bootstrap-table)[ Docs](https://github.com/MComScience/yii2-widget-bootstrap-table)[ RSS](/packages/m-comscience-yii2-widget-bootstrap-table/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (2)Used By (0)

 [ ![](https://avatars0.githubusercontent.com/u/993323) ](https://github.com/yiisoft)

Yii2 Extension
==============

[](#yii2-extension)

Requirements
------------

[](#requirements)

The minimum requirement is that your Web server supports PHP 7.0 or &gt;.

yii2-widget-bootstrap-table
===========================

[](#yii2-widget-bootstrap-table)

Bootstrap Tables widget for Yii2 framework

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

[](#installation)

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

```
composer require m-comscience/yii2-widget-bootstrap-table '@dev'

```

Usage
-----

[](#usage)

```
use mcomscience\bstable\BootstrapTable;

echo BootstrapTable::widget([
    'tableOptions' => ['id' => 'tb-example'],
    'hover' => true, // Defaults to true
    'bordered' => true, // Defaults to false
    'striped' => true, // Defaults to true
    'condensed' => true, // Defaults to true
    'caption' => 'Bootstrap Tables widget for Yii2 framework',
    'captionOptions' => [],
    'panel' => [
        'type' => BootstrapTable::TYPE_DEFAULT,
        'heading' => Html::tag('h3', 'Panel Title', ['class' => 'panel-title']),
        'before' => '',
        'after' => false,
        'footer-left' => false,
        'footer-right' => false,
    ],
    'toolbar' => [
        [
            'content' => Html::a('Add',  ['/app/settings/create'], ['class' => 'btn btn-success']),
            'options' => [],
        ],
    ],
    'beforeHeader' => [
        [
            'columns' => [
                ['content' => '#', 'options' => ['style' => 'text-align: center;width: 35px;']],
                ['content' => 'ID', 'options' => ['style' => 'text-align: center;']],
                ['content' => 'Title','options' => ['style' => 'text-align: center;']],
                ['content' => 'Name', 'options' => ['style' => 'text-align: center;']],
                ['content' => 'Status', 'options' => ['style' => 'text-align: center;']],
                ['content' => 'Actions', 'options' => ['style' => 'text-align: center;']],
            ],
        ],
    ],
    // 'afterHeader' => [],
    'showFooter' => true,
    'beforeFooter' => [
        [
            'columns' => [
                ['content' => 'Summary', 'options' => ['colspan' => 4]],
                ['content' => '', 'options' => ['style' => 'text-align: right;']],
                ['content' => '','options' => ['style' => 'text-align: center;']],
            ],
        ],
    ],
    // 'afterFooter' => [],
    'columns' => [
        'columns' => [
            ['content' => '1', 'options' => ['style' => 'text-align: center;width: 35px;']],
            ['content' => '100123', 'options' => ['style' => 'text-align: center;']],
            ['content' => 'Bootstrap','options' => ['style' => 'text-align: center;']],
            ['content' => 'Name', 'options' => ['style' => 'text-align: center;']],
            ['content' => 'Active', 'options' => ['style' => 'text-align: center;']],
            ['content' => Html::a('Delete',['delete','id' => $model['id']],['class' => 'btn btn-sm btn-danger']), 'options' => ['style' => 'text-align: center;']],
        ],
    ],
]);
```

Usage Datatables plug-in jQuery Javascript library [Datatables Widget ](https://github.com/MComScience/yii2-widget-datatables)

```
echo BootstrapTable::widget([
    'tableOptions' => ['class' => 'table table-hover table-striped','id' => 'tb-example'],
    // ... options
    'datatableOptions' => [
        "clientOptions" => [
            "responsive" => true,
            "autoWidth" => false,
            "deferRender" => true,
        ],
        'clientEvents' => [
            'error.dt' => 'function ( e, settings, techNote, message ){
                e.preventDefault();
                console.error(message);
            }'
        ]
    ],
]);
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2725d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f07077991bfb47848a8396ab5d1119a34eef5f998246566906f3da1d23aa74f1?d=identicon)[m-comscience](/maintainers/m-comscience)

---

Top Contributors

[![MComScience](https://avatars.githubusercontent.com/u/11044942?v=4)](https://github.com/MComScience "MComScience (7 commits)")

---

Tags

yii2extensionwidgetbootstrap

### Embed Badge

![Health badge](/badges/m-comscience-yii2-widget-bootstrap-table/health.svg)

```
[![Health](https://phpackages.com/badges/m-comscience-yii2-widget-bootstrap-table/health.svg)](https://phpackages.com/packages/m-comscience-yii2-widget-bootstrap-table)
```

###  Alternatives

[miloschuman/yii2-highcharts-widget

Highcharts widget for Yii 2 Framework.

1761.5M14](/packages/miloschuman-yii2-highcharts-widget)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)[marekpetras/yii2-ajax-box-widget

Ajax Box widget for Yii 2 Framework.

1814.6k](/packages/marekpetras-yii2-ajax-box-widget)[thiagotalma/yii2-fullcalendar

Widget for Yii Framework 2.0 to use FullCalendar

1777.7k](/packages/thiagotalma-yii2-fullcalendar)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
