Download the PHP package chandra-hemant/server-side-datatable without Composer

On this page you can find all versions of the php package chandra-hemant/server-side-datatable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package server-side-datatable

Server Side Data Table Packages

This package provides convenient methods to fetch data for server-side DataTables in Laravel applications with multiple approaches ranging from simple to advanced usage.

Installation

You can install this package via Composer:

Overview

The ChandraHemant/ServerSideDatatable package provides helper methods for retrieving data from database tables with options to join multiple tables, apply complex conditions, and handle server-side processing for DataTables in Laravel applications.

Namespace: ChandraHemant\ServerSideDatatable
Author: Hemant Kumar Chandra

🚀 FlexibleDataTable Class (Recommended)

NEW: The most developer-friendly approach with Laravel-style fluent interface!

Features

Laravel-Style Fluent Interface - Method chaining just like Eloquent
All Laravel Query Builder Methods - where, whereIn, whereRaw, join, etc.
Zero Learning Curve - If you know Laravel, you know this!
Case-Insensitive Search - Works with both English and Hindi text
Auto DataTable Formatting - Returns proper DataTable JSON response
Multiple Output Formats - DataTable, Collection, or Query Builder
IntelliSense Support - Full IDE auto-completion
Magic Method Support - Automatically supports current and future Laravel functions

Quick Start

Basic Usage

Advanced Usage

Different Output Formats

Helper Methods

Controller Example

Available Methods

Core Methods

Search Configuration

Laravel Query Builder Methods (All Supported!)

Helper Methods


DynamicModelDataTableHelper Class

The DynamicModelDataTableHelper class provides advanced server-side DataTable functionality with complex array-based configuration. This is the most powerful but complex approach.

Usage

Retrieving Data

Complex Nested Conditions

Constructor Parameters

Methods


DataTableHelper Class

The DataTableHelper class provides traditional SQL-based server-side data retrieval for DataTables with support for complex joins and raw SQL queries.

Methods

Usage Example


ModelDataTableHelper Class

This class provides Eloquent model-based server-side DataTables functionality with advanced column configuration and relationship handling.

Usage Example


Comparison of Approaches

Feature FlexibleDataTable DynamicModelDataTableHelper
Ease of Use ⭐⭐⭐⭐⭐ Very Easy ⭐⭐ Complex
Learning Curve ⭐⭐⭐⭐⭐ Zero (Laravel-like) ⭐⭐ High
Flexibility ⭐⭐⭐⭐⭐ Very High ⭐⭐⭐⭐⭐ Very High
Laravel Integration ⭐⭐⭐⭐⭐ Perfect ⭐⭐⭐⭐ Good
Code Readability ⭐⭐⭐⭐⭐ Excellent ⭐⭐ Poor
Performance ⭐⭐⭐⭐⭐ Excellent ⭐⭐⭐⭐ Good

Recommendations

Important Notes

Column Order Consistency

Maintaining consistency in the order and length between the orderable array and Table Headers is crucial for ensuring accurate column sorting in DataTables. The order of elements in the orderable array must align with the headers of the corresponding table.

Case-Sensitive Search

For case-insensitive search functionality, ensure your database collation supports it, or use the built-in LOWER() function implementation in FlexibleDataTable.

Performance Optimization

License

This package is open-sourced software licensed under the MIT license.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

If you encounter any issues or have questions, please open an issue on GitHub.


All versions of server-side-datatable with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package chandra-hemant/server-side-datatable contains the following files

Loading the files please wait ...