PHPackages                             faravaghi/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. faravaghi/yii2-widget-datatables

AbandonedArchivedYii2-extension[Utility &amp; Helpers](/categories/utility)

faravaghi/yii2-widget-datatables
================================

DataTables widget for Yii2

1.0(9y ago)152MITPHP

Since Jan 18Pushed 9y agoCompare

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

READMEChangelog (1)DependenciesVersions (2)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.

[![Latest Stable Version](https://camo.githubusercontent.com/e2bd08b59b4484fb6d4a197a0ed03adf3ff7a34e0aff6e45530f784055df3f31/68747470733a2f2f706f7365722e707567782e6f72672f6661726176616768692f796969322d7769646765742d646174617461626c65732f762f737461626c65)](https://packagist.org/packages/faravaghi/yii2-widget-datatables)[![Total Downloads](https://camo.githubusercontent.com/2736ec9162eb8da0e5da7928bdb6b434be398d7eb9db5873892bd5540f54b994/68747470733a2f2f706f7365722e707567782e6f72672f6661726176616768692f796969322d7769646765742d646174617461626c65732f646f776e6c6f616473)](https://packagist.org/packages/faravaghi/yii2-widget-datatables)[![Latest Unstable Version](https://camo.githubusercontent.com/c800855c005af9dd4e08d9130a33ee4f0e16d9d0b3686693cc1462624ad73c0c/68747470733a2f2f706f7365722e707567782e6f72672f6661726176616768692f796969322d7769646765742d646174617461626c65732f762f756e737461626c65)](https://packagist.org/packages/faravaghi/yii2-widget-datatables)[![License](https://camo.githubusercontent.com/d3dd3bd1634d8956c37fb6c56adc96798defbbafd207421e3b1a9968f4087830/68747470733a2f2f706f7365722e707567782e6f72672f6661726176616768692f796969322d7769646765742d646174617461626c65732f6c6963656e7365)](https://packagist.org/packages/faravaghi/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 faravaghi/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):

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

```

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

Usage
-----

[](#usage)

Use DataTables as any other other Yii2 widget.

```
use faravaghi\datatables\DataTables;
```

```
