Download the PHP package zonvoir/laravel-inertia-table without Composer
On this page you can find all versions of the php package zonvoir/laravel-inertia-table. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-inertia-table
Zonvoir Table
Expressive Laravel and Inertia Vue tables, keeping query orchestration and presentation tightly integrated.
Requirements
PHP 8.3+ Laravel 11, 12, or 13 Inertia.js 2.x or 3.x Vue 3.4+ Tailwind CSS 3.4+ or 4.0+
Installation
Standard Installation
Install the Laravel backend package via Composer:
Install the Vue adapter package via npm:
Architecture Note: Zonvoir Table decouples backend table querying and hydration (
zonvoir/laravel-inertia-table) from frontend presentation adapters (@zonvoir/inertia-table-vue). React and Svelte adapters will be available in future releases. Both packages are version-synchronized.
Import it in your app:
Configure Tailwind to scan the package so it generates the utility classes used by the components.
For Tailwind CSS 4:
For Tailwind CSS 3.4, add the package path to content in tailwind.config.js:
Backend Table Definition
Pagination is enabled by default and can be disabled per table:
Execute a table query with search, sorting, and the configured paginator, returning the full Inertia table payload:
The package supports paginate(), simplePaginate(), and cursorPaginate() through PaginationType::Standard, PaginationType::Simple, and PaginationType::Cursor.
Columns
Columns describe backend metadata and value resolution only. Rendering stays in the frontend.
Custom frontend-only metadata can be passed through meta():
Use mapAs() when a column value should be derived from the backend record instead of directly reading the column name:
Or fluently:
mapAs() is backend value mapping, not frontend rendering. The callback is never serialized to the frontend.
Hydrate state from the query string and return a normalized payload:
If you want multiple tables on the same page, give each table instance an explicit name so their state stays isolated:
This produces independent query string namespaces such as:
Example payload:
Dark mode
The adapter uses Tailwind's dark: utilities. Enable class-based dark mode in the consuming application, then add the dark class to an ancestor of the table.
For Tailwind CSS 4, add this to your CSS after importing Tailwind:
For Tailwind CSS 3.4, add this to tailwind.config.js:
Custom dynamic colors
The color option can produce Tailwind class names dynamically. If you use a custom color such as olive, register it and explicitly generate its utilities. Add any additional color name to the Tailwind theme and to the matching @source inline list (v4) or safelist pattern (v3.4).
For Tailwind CSS 4:
For Tailwind CSS 3.4:
License
Zonvoir Table is open-sourced software licensed under the Apache License, Version 2.0.
All versions of laravel-inertia-table with dependencies
illuminate/console Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
maatwebsite/excel Version ^3.1|^4.0