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

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

fedemotta/yii2-widget-datatables
================================

DataTables widget for Yii2

v1.3(10y ago)34179.4k↓11.2%30[17 issues](https://github.com/fedemotta/yii2-widget-datatables/issues)1MITPHP

Since May 26Pushed 9y ago6 watchersCompare

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

READMEChangelog (4)Dependencies (5)Versions (5)Used By (1)

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/d7d7fe165b903173b543a20981d87f52b888aa203a3caa126be2b3248dfef543/68747470733a2f2f706f7365722e707567782e6f72672f666564656d6f7474612f796969322d7769646765742d646174617461626c65732f762f737461626c65)](https://packagist.org/packages/fedemotta/yii2-widget-datatables) [![Total Downloads](https://camo.githubusercontent.com/d799d189c184439c206c1a17137e4ffcea91dff20066e7988e79754e38a052d1/68747470733a2f2f706f7365722e707567782e6f72672f666564656d6f7474612f796969322d7769646765742d646174617461626c65732f646f776e6c6f616473)](https://packagist.org/packages/fedemotta/yii2-widget-datatables) [![Latest Unstable Version](https://camo.githubusercontent.com/063293063127e0b5d46b41982b261e956712c3da3621b7d3f3b0abca13a2cc5f/68747470733a2f2f706f7365722e707567782e6f72672f666564656d6f7474612f796969322d7769646765742d646174617461626c65732f762f756e737461626c65)](https://packagist.org/packages/fedemotta/yii2-widget-datatables) [![License](https://camo.githubusercontent.com/751000063988358883f0ff6defcae2e11927bcb37cae0b4880055d268b537a97/68747470733a2f2f706f7365722e707567782e6f72672f666564656d6f7474612f796969322d7769646765742d646174617461626c65732f6c6963656e7365)](https://packagist.org/packages/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 fedemotta/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):

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

```

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

Usage
-----

[](#usage)

Use DataTables as any other other Yii2 widget.

```
use fedemotta\datatables\DataTables;
```

```
