PHPackages                             assadnazar/phalcon4-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. assadnazar/phalcon4-datatables

ActiveLibrary

assadnazar/phalcon4-datatables
==============================

DataTables adapter for Phalcon Framework Version 4

1.1.7(10y ago)3291MITPHP

Since Feb 6Pushed 6y agoCompare

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

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

[![Build Status](https://camo.githubusercontent.com/3fa4dd6b22d6ba39b4a6124ce262c7035f01b66bbcdce677bdbdb53665592249/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6272616e63682d6d61737465722d626c75652e737667)](https://camo.githubusercontent.com/3fa4dd6b22d6ba39b4a6124ce262c7035f01b66bbcdce677bdbdb53665592249/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6272616e63682d6d61737465722d626c75652e737667) [![Build Status](https://camo.githubusercontent.com/1418fea7b753b89c824ad66ff6c985956a8d21b2c054324ee8a3d0bde53549e6/68747470733a2f2f7472617669732d63692e6f72672f6d316f6d652f7068616c636f6e2d646174617461626c65732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/m1ome/phalcon-datatables) [![Coverage Status](https://camo.githubusercontent.com/b59c0b6b304e1023cd19a39e1b05975086806c716978a464660245d4c3e908b9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6d316f6d652f7068616c636f6e2d646174617461626c65732f62616467652e737667)](https://coveralls.io/r/m1ome/phalcon-datatables)

[![Total Downloads](https://camo.githubusercontent.com/893e8ea6dbce74864e709e5a34dbf8a9bc4794305222b7dcada254443c0a8046/68747470733a2f2f706f7365722e707567782e6f72672f6d316f6d652f7068616c636f6e2d646174617461626c65732f646f776e6c6f6164732e737667)](https://packagist.org/packages/m1ome/phalcon-datatables) [![License](https://camo.githubusercontent.com/6d1af10b998f9e1675670b36388d142ad877d9c4be4719a30c0903401646257d/68747470733a2f2f706f7365722e707567782e6f72672f6d316f6d652f7068616c636f6e2d646174617461626c65732f6c6963656e73652e737667)](https://packagist.org/packages/m1ome/phalcon-datatables)[![Dependency Status](https://camo.githubusercontent.com/428fa20174191eb05d3d4d041a148aa1ef5bb851e0dbc91fb6844c1aadb49ffe/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3534646536363364323731633933616131323030303030322f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/54de663d271c93aa12000002)

About
=====

[](#about)

This is a [Phalcon Framework](http://phalconphp.com/) adapter for [DataTables](http://www.datatables.net/). This version contains community fixes and multi model search support

Support
=======

[](#support)

### Currently supported

[](#currently-supported)

- QueryBuilder interface
- ResultSet interface
- Pagination
- Global search (by value)
- Ordering
- Multiple column ordering
- Column-based search
- Multi model search
- Export to Excel and PDF

Installation
============

[](#installation)

### Installation via Composer

[](#installation-via-composer)

- Install a composer
- Create `composer.json` file inside your project directory
- Paste into it

```
{
    "require": {
        "assadnazar/phalcon4-datatables": "dev-master",
        "phpoffice/phpspreadsheet": "1.11.0",
        "mpdf/mpdf": "8.0.5"
    }
}
```

- Run `composer update`

Example usage
=============

[](#example-usage)

It uses Phalcon [QueryBuilder](http://docs.phalconphp.com/en/latest/api/Phalcon_Mvc_Model_Query_Builder.html) for pagination in DataTables.

In example we have a stantart MVC application, with database enabled. Don't need to provide a normal bootstrap PHP file, for Phalcon documentation, visit official site.

### Controller (using QueryBuilder):

[](#controller-using-querybuilder)

```
