PHPackages                             mohiwalla/dtquick - 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. mohiwalla/dtquick

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mohiwalla/dtquick
=================

DataTables Quick is a lightweight and fast JavaScript library that simplifies the process of displaying data from databases. With minimal server-side code required, DataTables Quick generates queries automatically and saves time.

1134JavaScript

Since Jun 29Pushed 2y ago4 watchersCompare

[ Source](https://github.com/mohiwalla/dtquick)[ Packagist](https://packagist.org/packages/mohiwalla/dtquick)[ RSS](/packages/mohiwalla-dtquick/feed)WikiDiscussions mohiwalla Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

dtquick
=======

[](#dtquick)

***dtquick*** is a lightweight and fast JavaScript library that simplifies the process of displaying data from databases. With minimal code, ***dtquick*** generates queries automatically and saves time. Check out the [Live Demo](https://mohiwalla.000webhostapp.com/dtquick/) to see it in action!

Usage
-----

[](#usage)

There are several ways to use ***dtquick***:

- ### Using CDN

    [](#using-cdn)

Include the following script tag in the `` section of your HTML document to use ***dtquick*** via CDN:

```

```

- ### Cloning the Repository

    [](#cloning-the-repository)

If you have Git installed on your machine, you can clone the repository using the following command:

```
git clone https://github.com/mohiwalla/dtquick.git
```

- ### Installing via npm

    [](#installing-via-npm)

If you have Node.js installed on your machine, you can use the following command to install the module:

```
npm install dtquick
```

- ### Downloading the Script

    [](#downloading-the-script)

You can also download the [index.js](https://github.com/mohiwalla/dtquick/blob/mohiwalla/index.js) file and include it in your HTML document using the following script tag:

```

```

Alternatively, you can copy the code from [index.js](https://github.com/mohiwalla/dtquick/blob/mohiwalla/index.js) and paste it into a `` tag in your HTML document.

Initialization
--------------

[](#initialization)

To initialize ***dtquick***, add a `` element with `id="dtquick"`.

### Attributes

[](#attributes)

The following attributes must be added to the `` element:

- #### db-table

    [](#db-table)

Specifies the name of the table to be used in the MySQL query to fetch data from the database.

- #### cols

    [](#cols)

Specifies the names of the columns to be displayed in the table as a comma-separated list. Each column name should contain two parts: one for the client-side to display in the table's `` and another for the server-side (which is the name used to create the column in the database). For example:

```
cols="S. no. = S, name = Name, E-mail = Email, Pass = Password"
```

- #### file-name

    [](#file-name)

Specifies the name of the server-side file to which ***dtquick*** will send an AJAX request for data.

Example
-------

[](#example)

```

```

Server-Side File
----------------

[](#server-side-file)

The server-side file should fetch the query, the total number of rows available in the table, and the total found results as per the query. You can use any server-side language with it as per your comfort. Code samples for server-side scripts have been provided for reference in the following languages:

- [PHP](https://github.com/mohiwalla/dtquick/blob/mohiwalla/Samples/index.php)
- [ColdFusion](https://github.com/mohiwalla/dtquick/blob/mohiwalla/Samples/index.cfm)
- [Node.js](https://github.com/mohiwalla/dtquick/blob/mohiwalla/Samples/index.js)
- [Python](https://github.com/mohiwalla/dtquick/blob/mohiwalla/Samples/index.py)

Note
----

[](#note)

Before using ***dtquick*** in production, please note that this library sends a query from the client-side to the server-side, which is not traditional. Therefore, anyone from the client-side can modify the query to fetch data from your table, which is a potential risk to your data. If you want to prioritize safety, consider using [DataTables](https://datatables.net/) as it creates queries at the server end and reduces the risk. The purpose of creating queries at the client-end was to keep the structure of both client and server-side files simple and easy to use for newbies. If you find any bugs in the code or any possible improvements without compromising the simplicity of usage, you can send a pull request or modified code to . The existing code will be replaced by the code provided by you as soon as the examination is finished, and your name will be in the list of [Contributors](#contributors) as well. So, don't hesitate to give it a try. Lastly, if you appreciate the effort, consider giving a star to this repository.

Inspired by
-----------

[](#inspired-by)

[DataTables](https://datatables.net/)

License
-------

[](#license)

dtquick is distributed under the [MIT License](https://github.com/mohiwalla/dtquick/blob/mohiwalla/LICENSE).

Made with ❤️ by [mohiwalla](https://github.com/mohiwalla)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 99% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/121000462?v=4)[Kamaljot Singh](/maintainers/mohiwalla)[@mohiwalla](https://github.com/mohiwalla)

---

Top Contributors

[![mohiwalla](https://avatars.githubusercontent.com/u/121000462?v=4)](https://github.com/mohiwalla "mohiwalla (99 commits)")[![codewithsonyy](https://avatars.githubusercontent.com/u/114895266?v=4)](https://github.com/codewithsonyy "codewithsonyy (1 commits)")

---

Tags

datatableshacktoberfestjavascriptjavascript-librarymysqlphp

### Embed Badge

![Health badge](/badges/mohiwalla-dtquick/health.svg)

```
[![Health](https://phpackages.com/badges/mohiwalla-dtquick/health.svg)](https://phpackages.com/packages/mohiwalla-dtquick)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
