Download the PHP package artflow-studio/table without Composer

On this page you can find all versions of the php package artflow-studio/table. 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 table

AF Table

A Laravel Livewire "datatable" component that makes it effortless to display, search, filter, sort, paginate, and export your Eloquent model data.

Why Use AF Table?

Recent Performance Enhancements

Performance Features

Query Optimization

Memory Management

Smart Caching


Cache Management

AF Table uses caching to improve performance, especially for filter dropdowns and relation mapping.


Column and Relation Validation

AF Table validates all columns and relations before including them in SQL queries to prevent SQL errors and improve security.

This validation prevents SQL errors and ensures that only valid columns and relations are queried.


Default Sort Column Logic

AF Table automatically selects the most optimal default sort column for performance and usability:

This logic ensures fast sorting and a sensible default order for your data.


Eager Loading and Sort Direction Validation


Column Types

1. Database Columns (key-based)

For displaying database column values:

2. Relation Columns

For displaying related model attributes:

3. Function-Based Columns

For displaying model method results without database queries:

Function-Based Column Features:

Function Column Examples:

Simple Function Display
Function with Custom Raw Template
Multiple Function Calls in Raw Template
Complex Business Logic Example

Model Method Requirements

Your Eloquent model should have the corresponding methods:

Column Identification

The component now supports flexible column identification:

Relation Handling and Raw Templates

Simple Relation Display

For basic relation display, just use the relation key:

Raw Templates with Relations

When you need custom formatting but still want to use relations, combine relation and raw:

Advanced Raw Templates with Multiple Relation Attributes

For complex displays using multiple attributes from the same relation:

Concatenated Fields

For concatenating multiple columns from the same table:

Key Features:

Important Notes:

  1. Relation Format: Always use "relation:attribute" format for the relation key
  2. Raw Template Relations: When using $row->relation->attribute in raw templates, the relation is automatically loaded
  3. Column Detection: Columns like $row->first_name in raw templates are automatically included in queries
  4. Method Detection: Method calls like $row->methodName() in raw templates are automatically processed
  5. Performance: Only visible columns and their dependencies are loaded, keeping queries efficient

Mixed Column Example

Here's an example showing all column types together using a generic e-commerce scenario:

Common Function Column Use Cases

Status Checks

Calculated Values

Dynamic Content

Installation

Registering the Component

In most cases this is automatic via the service provider:

You may also use the Blade directive:

Usage

In Blade (Example Usage)

Exporting Excel (Filtered/All Data)

When you click the Export Excel button, a modal will appear asking if you want to export "Filtered Data" (current filters/search applied) or "All Data" (entire dataset). Select your option and the Excel file will be generated accordingly.

Note: Only Excel export is enabled by default. PDF and CSV can be enabled/extended as needed.

Configuration Options

Public Properties

Property Type Default Description
model string required Fully-qualified Eloquent model class.
columns array [] Column definitions (see below).
filters array [] Column filter configurations.
actions array [] Row-action Blade snippets.
query array [] Custom query constraints applied before table operations.
searchable bool true Show global search box.
exportable bool true Show export menu (Excel, PDF).
printable bool true Show print button.
checkbox bool false Enable row-selection checkboxes.
records int 10 Rows per page.
dateColumn string|null null Enables date-range filter on this column.
sort string 'desc' Default sort direction ('asc' or 'desc').
colSort bool true Allow sorting by clicking on column headers.
refreshBtn bool false Show a manual refresh button to reload the table data.
index bool false Show index column as first column. Changed to false by default for better performance.
colvisBtn bool true Show the column visibility button to let users toggle which columns are visible.

Performance Configuration

Property Type Default Description
distinctValuesCacheTime int 300 Seconds to cache filter distinct values
maxDistinctValues int 1000 Maximum distinct values per filter

Query Parameter Examples

The query parameter accepts an array of conditions in the following formats:

Column Definitions

Each entry in columns can include:

Required (one of these):

Optional:

CSS Class Priority

The component supports three class properties with the following priority:

  1. th_class: Specific classes for table headers (<th> elements)
  2. td_class: Specific classes for table cells (<td> elements)
  3. class: Fallback classes applied to both if specific classes are not provided

Important Notes on Relation Columns

Example: Relation Column

What Changed


Filter Types

Example: Distinct Filter

This will show a dropdown of all unique city values in ascending order.

Security Notes


All versions of table with dependencies

PHP Build Version
Package Version
Requires php Version *
livewire/livewire Version ^3.5
illuminate/view Version *
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 artflow-studio/table contains the following files

Loading the files please wait ....