Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Datatables Html Laravel Package

yajra/laravel-datatables-html

Generate DataTables scripts in PHP with Laravel DataTables Html. Build tables using a fluent builder, with support for Vite, DataTables 2.x, and Laravel 12. Install via composer require yajra/laravel-datatables-html:^13.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for admin/internal tooling tables. This package lets us ship server-side-paginated, filterable, exportable data tables as ~15 lines of PHP config per screen instead of a bespoke jQuery file per page. Buying (adopting) is clearly cheaper than building a table-rendering layer ourselves — the alternative is a multi-sprint internal framework effort with no differentiated value.
  • Configuration-as-code standard. Column definitions, buttons, editors, and layout become reviewable PHP in the repo rather than browser-console tweaking or copy-pasted JS across 30 admin screens. This is a maintainability decision as much as a feature decision: it makes table behavior diffable in pull requests.
  • Feature scope: which table capabilities are "free" vs. roadmap items. Sorting, searching, pagination, exports, column visibility controls, inline editor forms, and layout composition are all configuration-only. That means we can commit to a broad admin data-grid capability set without engineering spikes — the roadmap line item becomes "wire up the screens," not "design a grid."
  • Front-end stack commitment. Adopting this effectively ratifies a Blade + jQuery DataTables front-end for all data-table surfaces. It is a coherent fit for internal/admin/back-office UI and a poor fit for customer-facing product surfaces. This is a real roadmap constraint and should be recorded as an architectural decision, not left implicit.
  • Ecosystem alignment. It is a companion plugin to yajra/laravel-datatables, so this is not a new bet — it is the standard rendering layer for a package our Laravel team would almost certainly already be on. The decision is "adopt the front-end of the ecosystem we're in," which is a low-stakes call relative to adopting a new third-party platform.
  • Asset pipeline and component modernization. Builder::useVite() and Livewire 4 support (v12.7.0) mean this composes with modern Laravel build tooling and component stacks, so it doesn't lock us out of the Livewire-based admin patterns we may want later.

When to Consider This Package

Consider it when most of the following are true:

  • The application is server-rendered Laravel with Blade and will remain so for the relevant surfaces.
  • The target screens are internal, admin, or back-office — high data density, low brand-surface requirements.
  • We are already using yajra/laravel-datatables, or intend to for server-side query/filtering/authorization. This package is a presentation-layer plugin and does nothing useful on its own.
  • We want consistency across many table screens quickly, with a single convention for columns, buttons, and filters.
  • We need exports, filters, column visibility, and inline editing without building them.
  • Laravel version is 9.x–13.x; pinning is explicit and unambiguous in the compatibility table.

Look elsewhere when any of these hold:

  • The roadmap points to an SPA, Inertia/Vue/React, or a headless API consumed by multiple clients — this package generates jQuery DataTables wiring into a Blade view; its value proposition disappears.
  • The tables are customer-facing product UI where design-system components, accessibility parity, and rendering performance are product requirements rather than admin conveniences.
  • The team will not standardize on jQuery-descended client behavior — DataTables is mature but legacy-shaped, and that commitment outlives the package.
  • We want a fully decoupled, vendor-neutral grid we can swap out; this is coupled to its parent package by design.
  • We require long-term vendor accountability (SLA, paid support, security response commitments). It's MIT, single-maintainer-led, ~287 stars. Recent releases (v13.0.0 for Laravel 13, Livewire 4 support) demonstrate care, but there is no commercial backstop.

Risk notes to carry forward: single primary maintainer; modest star count relative to the parent ecosystem; "0 dependents" reported, so external validation signals are weak — but that metric understates reality because adoption flows through the parent package. Mitigation is straightforward: MIT license, small surface area, and the integration is shallow enough that removing it is a contained refactor, not a re-platforming.

How to Pitch It (Stakeholders)

To executives: This is a free, MIT-licensed plugin that lets our Laravel team deliver back-office data tables — searchable, sortable, exportable, editable grids — in a fraction of the time of hand-building them. It's a small, low-risk adoption on top of a package ecosystem our stack already leans toward, and it directly accelerates delivery of internal tools without adding vendor cost or contract exposure.

To engineering: This replaces per-page hand-written jQuery DataTables initialization with a fluent PHP Builder — columns, ajax source, buttons, editor fields, and layout defined as code in controllers or service classes, rendered through Blade with Vite and Livewire 4 support. It cleanly separates concerns: query, filtering, and authorization stay in the parent yajra/laravel-datatables package; markup and client config live here. Integration is one composer require, one Builder::useVite() line in AppServiceProvider, and an optional asset publish. Version compatibility is explicit across Laravel 9–13, and the package tracks new Laravel majors promptly. The tradeoff is an explicit commitment to a jQuery-descended client library — correct for admin surfaces, wrong for customer-facing product UI — so scope it to internal tooling and keep SPA-facing features out of it.

The ask: approve adoption as the standard for admin data-table screens, and record "Blade + DataTables for internal UI; not for customer-facing surfaces" as the architectural boundary that governs future feature requests.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
cgv/localized-resource