perry-rylance / datatable
This library handles client and server side record fetching, including search, sort and pagination. Please note that this package is still under development and is not usable presently. I expect this to be ready within the week.
Requires
- php: >=5.4.0
- illuminate/database: ^7.24
- illuminate/http: ^7.24
- perry-rylance/dom-document: dev-master
This package is auto-updated.
Last update: 2023-10-05 16:04:52 UTC
README
This library handles server side record fetching, including search, sort and pagination.
If you're looking for the client side module to go with this, please see https://github.com/PerryRylance/DataTable.js
A script file is provided for convenience which will automatically set up the tables client side also. Feel free to write your own, or extend PerryRylance.DataTable
by overriding createInstance
.
Requirements
- This library is designed to be used in an environment with Illuminates DB interface
- If you would like to use the JavaScript module provided, jQuery must be loaded before the script file
Installation
I recommend installing this via Composer:
composer require perry-rylance/datatable
Usage
- Make a subclass of
PerryRylance\DataTable
. - You must implement the abstract method
getTableName
. - You must also implement the abstract method
getRoute
.