PHPackages                             hello-sebastian/hello-bootstrap-table-bundle - 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. [Database &amp; ORM](/categories/database)
4. /
5. hello-sebastian/hello-bootstrap-table-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

hello-sebastian/hello-bootstrap-table-bundle
============================================

Symfony Bundle for bootstrap-table

v0.8.1(3y ago)103.9k4[2 issues](https://github.com/HelloSebastian/hello-bootstrap-table-bundle/issues)[1 PRs](https://github.com/HelloSebastian/hello-bootstrap-table-bundle/pulls)MITPHPPHP &gt;=7.2.5

Since Jan 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/HelloSebastian/hello-bootstrap-table-bundle)[ Packagist](https://packagist.org/packages/hello-sebastian/hello-bootstrap-table-bundle)[ RSS](/packages/hello-sebastian-hello-bootstrap-table-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (8)Versions (12)Used By (0)

HelloBootstrapTableBundle
=========================

[](#hellobootstraptablebundle)

**This Bundle provides *simple* [bootstrap-table](https://github.com/wenzhixin/bootstrap-table) configuration for your Doctrine Entities.**

Used bootstrap-table version 1.18.3.

Inspired by [SgDatatablesBundle](https://github.com/stwe/DatatablesBundle) and [omines/datatables-bundle](https://github.com/omines/datatables-bundle)

Overview
--------

[](#overview)

1. [Features](#features)
2. [Installation](#installation)
3. [Your First Table](#your-first-table)
4. [Columns](#columns)
    1. [TextColumn](#textcolumn)
    2. [BooleanColumn](#booleancolumn)
    3. [DateTimeColumn](#datetimecolumn)
    4. [HiddenColumn](#hiddencolumn)
    5. [LinkColumn](#linkcolumn)
    6. [CountColumn](#countcolumn)
    7. [ActionColumn](#actioncolumn)
5. [Filters](#filters)
    1. [TextFilter](#textfilter)
    2. [ChoiceFilter](#choicefilter)
    3. [BooleanChoiceFilter](#booleanchoicefilter)
    4. [CountFilter](#countfilter)
6. [Configuration](#configuration)
    1. [Table Dataset Options](#table-dataset-options)
    2. [Table Options](#table-options)
7. [Common Use-Cases](#common-use-cases)
    1. [Custom Doctrine Queries](#custom-doctrine-queries)
    2. [Detail View](#detail-view)
    3. [Use Icons as action buttons](#use-icons-as-action-buttons)
8. [Contributing](#contributing)

---

Features
--------

[](#features)

- Create bootstrap-tables in PHP
- Twig render function
- global filtering (server side)
- column based filtering (advanced search)
- column sorting (server side)
- Pagination (service side)
- different column types
- bootstrap-table extensions
    - [sticky-header](https://bootstrap-table.com/docs/extensions/sticky-header/)
    - [export](https://bootstrap-table.com/docs/extensions/export/)
    - [page-jump-to](https://bootstrap-table.com/docs/extensions/page-jump-to/)
    - [toolbar](https://bootstrap-table.com/docs/extensions/toolbar/) with [advanced-search](https://bootstrap-table.com/docs/extensions/toolbar/#advancedsearch)

---

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

[](#installation)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download this bundle:

```
$ composer require hello-sebastian/hello-bootstrap-table-bundle
```

### Step 2: Enable the Bundle (without flex)

[](#step-2-enable-the-bundle-without-flex)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    HelloSebastian\HelloBootstrapTableBundle\HelloBootstrapTableBundle::class => ['all' => true],
];
```

### Step 3: Assetic Configuration

[](#step-3-assetic-configuration)

#### Install the web assets

[](#install-the-web-assets)

```
# if possible, make absolute symlinks (best practice) in public/ if not, make a hard copy

$ php bin/console assets:install --symlink
```

#### Add Assets into your base.html.twig

[](#add-assets-into-your-basehtmltwig)

**CSS**:

```

{{ hello_bootstrap_table_css() }}
```

**JavaScript**:

```

{{ hello_bootstrap_table_js() }}
```

---

Your First Table
----------------

[](#your-first-table)

### Step 1: Create a Table class

[](#step-1-create-a-table-class)

```
// src/HelloTable/UserTable.php
