PHPackages                             dbfernandes/yii2-widget-datatables - 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. dbfernandes/yii2-widget-datatables

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

dbfernandes/yii2-widget-datatables
==================================

DataTables widget for Yii2

v1.3(10y ago)013MITPHP

Since May 26Pushed 8y agoCompare

[ Source](https://github.com/dbfernandes/yii2-widget-datatables)[ Packagist](https://packagist.org/packages/dbfernandes/yii2-widget-datatables)[ RSS](/packages/dbfernandes-yii2-widget-datatables/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (5)Used By (0)

DataTables widget for Yii2
==========================

[](#datatables-widget-for-yii2)

This extension provides the [DataTables](https://github.com/DataTables/DataTables) integration for the Yii2 framework. It was originally proposed by [fedemotta](https://github.com/fedemotta/yii2-widget-datatables).

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

[](#installation)

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

With Composer installed, you can then install the extension using the following commands:

```
composer global require "fxp/composer-asset-plugin:~1.0.0"
composer require --prefer-dist dbfernandes/yii2-widget-datatables "*"

```

The first command installs the [composer asset plugin](https://github.com/francoispluchino/composer-asset-plugin/)which allows managing bower and npm package dependencies through Composer. You only need to run this command once for all. The second command installs the datatables widget.

You can also add (instead of the second command):

```
"dbfernandes/yii2-widget-datatables": "*"

```

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

Usage
-----

[](#usage)

Use DataTables as any other other Yii2 widget.

```
use dbfernandes\datatables\DataTables;
```

```
