Download the PHP package dongrim/datatable-inertia without Composer

On this page you can find all versions of the php package dongrim/datatable-inertia. 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 datatable-inertia

Datatable-Inertia

tests

This package provides a DataTables-like experience for Inertia.js with support for searching, filtering, sorting and pagination.

Laravel compatibility

Laravel datatable-inertia
6.0-9.x 0.0.x

Installation

Install the package via composer.

Config Files

In order to edit the default configuration you may execute:

Usage

By default, the command generates the SomeDatatable class in the \App\Datatables directory
If you want to change the destination path of a class, you can use one of these methods:

  1. Specify a new path in the file /config/datatables.php

  2. Run command php artisan datatable:make without specifying the name of the generated class and answer questions.

To generate data, a table macro has been created for Inertia\Response.
You can take advantage of dependency injection

Or just give the classpath

If you need to pass additional data, use the usual method of passing data in InertiaJs

By default datatable class is generated in minimal configuration

For example

Public properties available in the class:

Properties Type Default Description
datatableName string 'datatable' The name of the object containing all returned data from datatable
perPageKey string 'per_page' The key in the request responsible for changing the number of displayed elements on the page (only when rendering on the client side)
itemsPerPage int 15 Parameter responsible for the number of displayed elements on the page by default
serverSide bool false Parameter responsible for the server or client side rendering

Note that these options are set globally in the config/datatables.php configuration file.
You can override them directly in you the class

Public methods available in the class:

Method Response type Required Description
query \Illuminate\Database\Eloquent\Builder required Creates prepared Eloquent query builder
modify \Illuminate\Database\Eloquent\Model optional Changing the value of returned fields
columns array optional If method columns not implemented in the derived class, will be returned all fillable fields
guard array optional Adding access rights to a specific entry to change, delete, etc.
filters array optional Adding filters and their values (server-side rendering only)

For ExampleDatatable:


All versions of datatable-inertia with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4.0
laravel/framework Version ~6.0||^7.0||^8.0||^9.0
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 dongrim/datatable-inertia contains the following files

Loading the files please wait ....