Download the PHP package italix/datasets without Composer
On this page you can find all versions of the php package italix/datasets. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download italix/datasets
More information about italix/datasets
Files in italix/datasets
Package datasets
Short Description Server-side data tables and trees: column and action definitions in PHP, driver-rendered client configuration, whitelisted column names
License MPL-2.0
Homepage https://github.com/italix-net/datasets
Informations about the package datasets
Italix DataSets
Pluggable datatable and data-tree rendering for PHP. Works with any TableMeta-compatible source and multiple JS datatable libraries.
Features
- Server-side pagination, sorting, searching, and filtering
- Multi-column sorting with Shift+click interactive support
- Per-row action buttons (edit, delete, view) with confirmation dialogs
- Toolbar with bulk actions on none, selected, or all rows
- Row selection via checkboxes or row highlighting
- Global search with debounce and minimum length
- Column-level header filters (text input, select dropdown)
- Column formatting, alignment, freezing, and visibility control
- Hierarchical data trees with configurable parent-child relationships
- Event system mapping named events to JS callback functions
- Pluggable driver architecture for different JS datatable libraries
- Tabulator JS as the first built-in driver
- PHP 7.4+ compatible, PSR-4 autoloaded
- Fluent, chainable API with snake_case conventions
Installation
Requirements
- PHP 7.4 or higher
- italix/contracts (installed automatically)
Quick Start
Action Buttons
Add per-row action buttons with optional confirmation dialogs:
Toolbar & Bulk Actions
Add toolbar buttons that operate on no data, selected rows, or all rows:
Row Selection
Two selection modes:
Search & Filtering
Multi-column Sorting
Row Events
Data Trees
Display hierarchical data with parent-child relationships:
Server-Side Handler
Handle AJAX requests on the server with ServerSideRequest and ServerSideResponse:
The response format:
Column Configuration
Driver System
DataSets uses a pluggable driver system. Register and switch drivers:
Implement DriverInterface to create custom drivers for other JS libraries.
Helper Functions
Using with Italix ORM
DataSets works with any TableMeta-compatible source. With Italix ORM, your table schemas are already TableMeta:
Examples
See the examples/ directory for complete, runnable examples:
| Example | Description |
|---|---|
01-basic-table.php |
Basic table with columns, sorting, pagination, AJAX |
02-column-formatting.php |
Formatters, alignment, frozen columns, visibility |
03-action-buttons.php |
Per-row Edit/View/Delete buttons with confirm dialogs |
04-toolbar-bulk-actions.php |
Toolbar with none/selected/all scope buttons |
05-search-and-filtering.php |
Global search and column header filters |
06-multi-sort.php |
Multi-column default sorting |
07-row-selection.php |
Checkbox vs highlight selection modes |
08-row-events.php |
Row click, double-click, context menu events |
09-data-tree.php |
Hierarchical data tree with parent-child config |
10-server-side-handler.php |
ServerSideRequest/Response with query building |
11-complete-crud.php |
Full CRUD table combining all features |
12-driver-registry.php |
Driver registry and custom driver pattern |
13-helper-functions.php |
dataset() and data_tree() shorthand functions |
License
MPL-2.0. See LICENSE for details.