PHPackages                             langleyfoxall/react-dynamic-data-table-laravel-api - 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. [API Development](/categories/api)
4. /
5. langleyfoxall/react-dynamic-data-table-laravel-api

ActiveLibrary[API Development](/categories/api)

langleyfoxall/react-dynamic-data-table-laravel-api
==================================================

Provides a Laravel API endpoint responder for the `react-dynamic-data-table` component.

v5.6.1(2d ago)716.1k↓61.5%2[2 issues](https://github.com/langleyfoxall/react-dynamic-data-table-laravel-api/issues)LGPL-3.0-onlyPHPPHP ^7.2||^8.0

Since Nov 19Pushed 3w ago2 watchersCompare

[ Source](https://github.com/langleyfoxall/react-dynamic-data-table-laravel-api)[ Packagist](https://packagist.org/packages/langleyfoxall/react-dynamic-data-table-laravel-api)[ RSS](/packages/langleyfoxall-react-dynamic-data-table-laravel-api/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (4)Versions (23)Used By (0)

Laravel API for React Dynamic Data Table
========================================

[](#laravel-api-for-react-dynamic-data-table)

This package provides a Laravel API endpoint responder for the [React Dynamic Data Table](https://github.com/langleyfoxall/react-dynamic-data-table)component.

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

[](#installation)

```
composer require langleyfoxall/react-dynamic-data-table-laravel-api
```

Usage
-----

[](#usage)

First, create a new route in your API routes file for the data table response, and point it to a controller.

In this controller method, create a new `DataTableResponder` passing it the model you wish to return data about, and the provided instance of the `Request` object. You can optionally specify changes to the query (such as sorting, or filtering) using the `query` method. If you want to alter the data before it gets returned in some way, such as changing attribute values or appending custom attributes, you can take advantage of `collectionManipulator`. You can also change number of records shown per page with the `setPerPage` method.

See the example usage below.

```
use App\User;
use Illuminate\Http\Request;
use LangleyFoxall\ReactDynamicDataTableLaravelApi\DataTableResponder;

class UsersController extends Controller
{
    public function dataTable(Request $request)
    {
        return (new DataTableResponder(User::class, $request))
            ->query(function($query) {                                   // Optional, default: none
                $query->where('name', 'like', 'B%');
            })
            ->collectionManipulator(function (Collection $collection) {  // Optional, default: none
                $collection->map(function($user) {
                    $user->name = title_case($user->name);
                });
            })
            ->setPerPage(10)                                             // Optional, default: 15
            ->respond();
    }
}
```

In your frontend code, you can now use the [React Dynamic Data Table](https://github.com/langleyfoxall/react-dynamic-data-table) package's `AjaxDynamicDataTable` component to display a table of this data. The API route previously defined should be passed to this component as the `apiUrl` prop.

An example usage is shown below.

```
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import AjaxDynamicDataTable from "@langleyfoxall/react-dynamic-data-table/dist/AjaxDynamicDataTable";

export default class Example extends Component {
    render() {
        return (

        );
    }
}

if (document.getElementById('example')) {
    ReactDOM.render(, document.getElementById('example'));
}
```

### Without a model

[](#without-a-model)

Sometimes you need to create a table of data for which there is no model (and the data is some kind of aggregation, so a model would not be appropriate).

```
use App\User;
use Illuminate\Http\Request;
use LangleyFoxall\ReactDynamicDataTableLaravelApi\DataTableResponder;

class UsersController extends Controller
{
    public function dataTable(Request $request)
    {
        return (new DataTableResponder(DB::table('users')->select(['id', 'name']), $request))
            ->query(function($query) {                                   // Optional, default: none
                $query->where('name', 'like', 'B%');
            })
            ->collectionManipulator(function (Collection $collection) {  // Optional, default: none
                $collection->map(function($user) {
                    $user->name = title_case($user->name);
                });
            })
            ->setPerPage(10)                                             // Optional, default: 15
            ->respond();
    }
}
```

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance92

Actively maintained with recent releases

Popularity31

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Every ~163 days

Recently: every ~188 days

Total

18

Last Release

2d ago

Major Versions

v1.1.0 → v2.0.02019-07-12

v2.4.0 → v3.0.02021-04-21

v3.0.1 → v4.0.02021-11-12

v4.0.0 → v5.0.02022-05-17

PHP version history (2 changes)v1.0.0PHP ^7.0.0

v3.0.0PHP ^7.2||^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/c580cdf7c14898fff179cdfc1085892091d5d2f49d917873a12365af9ac77c93?d=identicon)[Jord-JD](/maintainers/Jord-JD)

![](https://avatars.githubusercontent.com/u/18738623?v=4)[Codebased Ltd](/maintainers/langleyfoxall)[@langleyfoxall](https://github.com/langleyfoxall)

---

Top Contributors

[![dextermb](https://avatars.githubusercontent.com/u/6137789?v=4)](https://github.com/dextermb "dextermb (16 commits)")[![Jord-JD](https://avatars.githubusercontent.com/u/650645?v=4)](https://github.com/Jord-JD "Jord-JD (15 commits)")[![jameswilddev](https://avatars.githubusercontent.com/u/3138458?v=4)](https://github.com/jameswilddev "jameswilddev (9 commits)")[![Warren-CB](https://avatars.githubusercontent.com/u/126696209?v=4)](https://github.com/Warren-CB "Warren-CB (4 commits)")[![ash123456789](https://avatars.githubusercontent.com/u/11010491?v=4)](https://github.com/ash123456789 "ash123456789 (2 commits)")[![LNCH](https://avatars.githubusercontent.com/u/10821244?v=4)](https://github.com/LNCH "LNCH (2 commits)")[![NilesB](https://avatars.githubusercontent.com/u/7305403?v=4)](https://github.com/NilesB "NilesB (2 commits)")[![lfnicklangley](https://avatars.githubusercontent.com/u/10709152?v=4)](https://github.com/lfnicklangley "lfnicklangley (1 commits)")

---

Tags

data-tablelaravellaravel-apireacttable

### Embed Badge

![Health badge](/badges/langleyfoxall-react-dynamic-data-table-laravel-api/health.svg)

```
[![Health](https://phpackages.com/badges/langleyfoxall-react-dynamic-data-table-laravel-api/health.svg)](https://phpackages.com/packages/langleyfoxall-react-dynamic-data-table-laravel-api)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M985](/packages/statamic-cms)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

3.0k37.6M134](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k14.2M63](/packages/knuckleswtf-scribe)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

783.8k](/packages/scriptdevelop-whatsapp-manager)[weapnl/laravel-junction

Easily create a REST API with extended functionality, such as eager loading, searching, filtering, and more.

2214.2k](/packages/weapnl-laravel-junction)

PHPackages © 2026

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