PHPackages                             fluidtech/spock-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. fluidtech/spock-datatables

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

fluidtech/spock-datatables
==========================

JQuery DataTables.net API for Laravel 5+

011PHP

Since Jan 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Gaurav-Punjabi/spock-datatables)[ Packagist](https://packagist.org/packages/fluidtech/spock-datatables)[ RSS](/packages/fluidtech-spock-datatables/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Spock DataTables
================

[](#spock-datatables)

A laravel package to handle the server side processing of DataTables jQuery Plugin via AJAX option by using Eloquent Query Builder.

[![LICENSE.md](https://camo.githubusercontent.com/c423104ab271f703aa32ccc6848ca7eb303896c93f4b3419453f68a665bc53f4/68747470733a2f2f62616467656e2e6e65742f62616467652f5068702f76372b2f677265656e)](https://camo.githubusercontent.com/c423104ab271f703aa32ccc6848ca7eb303896c93f4b3419453f68a665bc53f4/68747470733a2f2f62616467656e2e6e65742f62616467652f5068702f76372b2f677265656e)[![LICENSE.md](https://camo.githubusercontent.com/92311a6f1d2ac6f235b78848cc4ebe1b1bd86053b574ba0397e85ecce84ff188/68747470733a2f2f62616467656e2e6e65742f62616467652f5061636b61676973742f76392e382e302f626c7565)](https://camo.githubusercontent.com/92311a6f1d2ac6f235b78848cc4ebe1b1bd86053b574ba0397e85ecce84ff188/68747470733a2f2f62616467656e2e6e65742f62616467652f5061636b61676973742f76392e382e302f626c7565)[![LICENSE.md](https://camo.githubusercontent.com/ca127a9e8d6383a86e021c6be1061e55ac3e7078b77436bbb935e5f0a080d2d7/68747470733a2f2f62616467656e2e6e65742f62616467652f4c61726176656c2f76352e352b2f6f72616e6765)](https://camo.githubusercontent.com/ca127a9e8d6383a86e021c6be1061e55ac3e7078b77436bbb935e5f0a080d2d7/68747470733a2f2f62616467656e2e6e65742f62616467652f4c61726176656c2f76352e352b2f6f72616e6765)[![LICENSE.md](https://camo.githubusercontent.com/b3034b9a2e9da5727503440f1698d088ff4e82213d2b99890e760d04b70f0e55/68747470733a2f2f62616467656e2e6e65742f62616467652f4c4943454e53452f4d49542f707572706c65)](https://camo.githubusercontent.com/b3034b9a2e9da5727503440f1698d088ff4e82213d2b99890e760d04b70f0e55/68747470733a2f2f62616467656e2e6e65742f62616467652f4c4943454e53452f4d49542f707572706c65)

- [Requirements](#requirements)
- [Installation](#quick-installation)
- [Documentation](#documentation)
    - [Eloquent Query Builder](#using-eloquent-query-builder)
- [License](#license)

Requirements
------------

[](#requirements)

- PHP &gt;= 7.0
- Laravel &gt;= 5.5
- jQuery Datatables v1.10x

Quick Installation
------------------

[](#quick-installation)

```
$ composer require fluidtech/spock-datatables
```

#### Add service provider

[](#add-service-provider)

Register provider on you `conifg\app.php` file.

```
'providers' => [
    ...,
    \FluidTech\SpockDataTables\SpockServiceProvider::class
]
```

And that's it! Now you can start building out DataTables faster!

### Documentation

[](#documentation)

1. Using Eloquent Query Builder

    Fetches the and returns the records using the given query.

    #### Syntax

    [](#syntax)

    ```
       $expectedResponse = \FluidTech\SpockDataTables\DataTable::of($query, $list_of_columns)
           ->make();
    ```

    - **Accepts**
        - `$query` : The base query from which records needs to be fetched.
        - `$list_of_columns` : An list of column names that needs to be displayed.
            **Note** : The sequence of columns should be the same as specified on the client side.

    #### Example

    [](#example)

    ```
    $query = DB::table('users');

    return \FluidTech\SpockDataTables\DataTable::of($query, [
            "name",
            "phone_number"
        ])
        ->make();
    ```
2. Using Fluent Query Builder (Coming Soon)
3. Using Collection (Coming Soon)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/Gaurav-Punjabi/spock-datatables/blob/master/LICENSE.md) for more information.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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/36587580?v=4)[Gaurav Punjabi](/maintainers/Gaurav-Punjabi)[@Gaurav-Punjabi](https://github.com/Gaurav-Punjabi)

---

Top Contributors

[![Gaurav-Punjabi](https://avatars.githubusercontent.com/u/36587580?v=4)](https://github.com/Gaurav-Punjabi "Gaurav-Punjabi (13 commits)")

---

Tags

datatablesdatatables-ajaxdatatables-pluginlaravellaravel-packagepackagist

### Embed Badge

![Health badge](/badges/fluidtech-spock-datatables/health.svg)

```
[![Health](https://phpackages.com/badges/fluidtech-spock-datatables/health.svg)](https://phpackages.com/packages/fluidtech-spock-datatables)
```

###  Alternatives

[tinect/redirects

Redirect plugin for Shopware 6

2040.6k](/packages/tinect-redirects)[defstudio/filament-column-length-limiter

Limit Filament columns length showing a tooltip when text exceeds

126.2k](/packages/defstudio-filament-column-length-limiter)

PHPackages © 2026

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