Download the PHP package laravel-enso/tables without Composer

On this page you can find all versions of the php package laravel-enso/tables. 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 tables

Tables

Stable Downloads Issues Merge Requests

Description

Tables is the backend engine behind Enso's server-side data tables.

The package reads a JSON table template, validates it, builds the frontend bootstrap payload, turns incoming column and meta state into a normalized request object, applies search and filter pipelines to an Eloquent query, computes row payloads, totals, pagination metadata, and can queue large spreadsheet exports with progress notifications.

It is one of the core Enso infrastructure packages and is designed to be reused by any backend module that exposes list views.

Installation

Install the package:

Publish the optional assets when you want local overrides:

The package also ships stubs for new table builders, actions, and JSON templates:

When template caching is enabled, clear cached templates on deploy:

Features

Export chunking

Table exports use OptimalChunk to select efficient ID-range windows. A table that loads unusually heavy relations may implement CustomExportChunk and return a smaller exportChunk() value. The override is applied only to dense ranges, while sparse ranges keep the normal optimal window.

Usage

1. Implement a table builder

Each table builder implements LaravelEnso\Tables\Contracts\Table:

2. Expose the three backend endpoints

The package controller traits are intentionally small:

3. Define the JSON template

At minimum, a table template needs:

Example:

Template structure

Top-level attributes accepted by the validator include:

Column attributes:

Column meta flags:

Button structure:

Filters:

Defaults also come from config/tables.php:

Request and query pipeline

Incoming frontend state is normalized through:

  1. ProvidesRequest and FilterAggregator
  2. TemplateLoader and Template
  3. Config, which merges request meta onto template columns
  4. Data\Builders\Data, Meta, and Total

The data pipeline applies:

Optional implicit sorting

Set the top-level boolean disableImplicitSorting to true in a table's JSON template to skip fallback sorting when displaying table rows:

The flag defaults to false. When enabled, the table does not add defaultSort (including the automatically generated row-ID sort) if no explicit column sort applies. Explicit column sorts keep their existing row-ID tie-breaker, and any ordering defined by the table builder's query is preserved.

Without a guaranteed order, pagination may repeat or omit rows between pages, even when the underlying data has not changed. Enable this option only when retrieving any matching rows is acceptable.

The option affects table display only. Internal fetch mode, spreadsheet exports, and count queries keep their existing behavior. Clear the template cache after changing the flag when template caching is enabled.

Computors and formatting

The package supports two families of computors:

That lets you:

Export flow

The export endpoint uses Prepare, then queues either Jobs\Excel or Jobs\EnsoExcel.

During export the package:

Large tables can cap the export query chunk by implementing LaravelEnso\Tables\Contracts\CustomExportChunk:

The export service uses the lower value between the automatically computed chunk and the custom chunk, so table builders can reduce memory pressure without increasing the default chunk size for smaller exports.

Caching and extension points

Tests

The package ships focused unit coverage for:

Useful local targets:

API

The package exposes three backend endpoints through the controller traits documented in the usage flow:

At code level, the stable backend contract is LaravelEnso\Tables\Contracts\Table. Custom table builders should implement query() and templatePath(), while downstream modules should treat helper classes such as processors, calculators, computors, and normalizers as internal implementation details unless they are extended deliberately.

Depends On

Required Enso packages:

Companion frontend package:

Contributions

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!


All versions of tables with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
openspout/openspout Version ^4.0
laravel-enso/enums Version ^3.0
laravel-enso/filters Version ^3.0
laravel-enso/helpers Version ^4.0
laravel-enso/mails Version ^1.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 laravel-enso/tables contains the following files

Loading the files please wait ...