PHPackages                             viveksingh/dynamic-datatable - 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. viveksingh/dynamic-datatable

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

viveksingh/dynamic-datatable
============================

dynamic datatable

v1.0.0(3y ago)117MITPHPPHP ^7.4|^8.0

Since Mar 13Pushed 3y ago1 watchersCompare

[ Source](https://github.com/viveksinghhestabit/dynamic-datatable)[ Packagist](https://packagist.org/packages/viveksingh/dynamic-datatable)[ Docs](https://github.com/viveksingh/dynamic-datatable)[ RSS](/packages/viveksingh-dynamic-datatable/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Very short description of the package
=====================================

[](#very-short-description-of-the-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/eba31f3a5dbf6aadc6ec3efd9b983314be98a592c5212609408fd71304575acd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f766976656b73696e67682f64796e616d69632d646174617461626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/viveksingh/dynamic-datatable)[![Total Downloads](https://camo.githubusercontent.com/4ff8c2245cb7d0abd4809e5c95fed97edd975960304dd7119eb421a5f960a3d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f766976656b73696e67682f64796e616d69632d646174617461626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/viveksingh/dynamic-datatable)

This Laravel package is a useful tool that allows developers to easily create and manage dynamic data tables in their Laravel applications. With this package, you can quickly generate dynamic tables that are fully customizable and support a variety of data types, including text, numbers, dates, and more.

The package offers a range of features to help you build powerful data tables with minimal effort. For example, you can sort and filter data, paginate tables, add custom columns.

One of the key benefits of your package is its flexibility and ease of use. Whether you're building a simple table to display basic data or a complex table with advanced functionality, the package provides a straightforward interface that makes it easy to create, manage, and customize your tables.

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

[](#installation)

You can install the package via composer:

```
composer require viveksingh/dynamic-datatable
```

Usage
-----

[](#usage)

The DynamicDatatable::table($request) method is used to generate a dynamic data table using your Laravel package for dynamic-datatables.

To use this method, you will first need to ensure that your package is properly installed and configured in your Laravel application. Once you have done so, you can call the table() method and pass in a $request object recieved from jquery datatable ajax request.

```
    public function getData(Request $request){       
        return DynamicDatatable::table($request);   
    }
```

You can also pass table name from the controller like this:

```
    public function getData(Request $request){       
        return DynamicDatatable::table($request, 'table_name');   
    }
```

And In the front file where we implement jquery table lookes like this:

```
 $(document).ready(function() {
        $('#table').DataTable({
            processing: true,
            serverSide: true,
            paging: true,
            ajax: {
                url: "{{ route('admin.getUser') }}",
                data: {
                    table_name: 'users'
                }
            },
            columns: [{
                    data: 'id',
                },
                {
                    data: 'name',
                },
                {
                    data: 'email',
                }
            ],
        });
    });
```

Here paging must be true and you pass the column names which you want to use in the datatable. and one important thing you can also pass the table name from the ajax data . for more please see the examples.

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Vivek Singh](https://github.com/viveksingh)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.2% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1162d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cb64def519cc3d97edc8c52ebadd7876223ad912a57c7201bbabbbf40deac1a0?d=identicon)[viveksinghhestabit](/maintainers/viveksinghhestabit)

---

Top Contributors

[![viveksinghhestabit](https://avatars.githubusercontent.com/u/121616982?v=4)](https://github.com/viveksinghhestabit "viveksinghhestabit (12 commits)")[![sumitkumar33](https://avatars.githubusercontent.com/u/113529967?v=4)](https://github.com/sumitkumar33 "sumitkumar33 (7 commits)")

---

Tags

viveksinghdynamic-datatable

### Embed Badge

![Health badge](/badges/viveksingh-dynamic-datatable/health.svg)

```
[![Health](https://phpackages.com/badges/viveksingh-dynamic-datatable/health.svg)](https://phpackages.com/packages/viveksingh-dynamic-datatable)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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