Download the PHP package revaycolizer/data-display without Composer

On this page you can find all versions of the php package revaycolizer/data-display. 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 data-display

๐Ÿ“Š DataDisplay Component

The DataDisplay class is a dynamic PHP data table renderer built with Sweet Alert and Bootstrap. It supports adding, editing, deleting, searching, joining tables, and pagination โ€” all from a fluent interface.

โœจ Features

๐Ÿ—ƒ Dynamic table rendering with Bootstrap

๐Ÿ” Searchable columns with support for input/select types

๐Ÿ” CRUD Operations With Permissions

๐Ÿ”„ Editable records with modals

โž• Add new records using modals

โŒ Delete functionality with confirmation

๐Ÿ”— Supports JOINs

๐Ÿ“‘ Pagination support

๐Ÿ” CSRF protection

Instantiate the Component Using Doctrine For Data Fetching

Instantiate the Component Using Classes For Data fetching

Provide The Method Which Will be Used in Fetching Data When Using Classes

Provide The Method With It's Parameters Which Will be Used in Fetching Data When Using Classes

DataDisplay Modes

Mode 1: Default

By Default the mode is Default There is no Need to Set Mode

Mode 2: Report

If mode is set to report it will remove the CRUD Buttons(Add,Edit & Delete)

Action Button Modes

Default

Dropdown

๐Ÿ”ง Configuration

Set Columns to Add

Set Columns to Edit

Set Add Permission

It takes a boolean value

Set Actions Button(Add,Edit,Delete)

By default All Buttons are enabled

Add Action using Input

Edit Action Using Input

Delete Action

SweetAlert Delete Title

SweetAlert Delete Message

Set BootStrap Version

By Default It uses BootStrap 5

Set SweetAlert Vision

By default it Uses SweetAlert 2

For those Getting DataTable Initialization Error

set Datatable Buttons

Select Fields and JOINs

Values to Render

If there are no Values to Render, it uses the Values to Select as a Fallback to render the items

Edit Button Conditions

You can decide to not specify the group operator which by default it will use AND operator as a fallback

Specifying Group Operator

How to Set Conditions:

Case 1: Simple OR condition (Conditions connected by OR):

This will return true if either name is equal to 'rrrooo' OR price is equal to 566.

Case 2: Simple AND condition (Conditions connected by AND):

This will return true if both name is equal to 'rrrooo' AND price is equal to 566.

Case 3: Mixed AND and OR (More complex logic with groups):

This will evaluate like:

(name = 'rrrooo' AND price = '566')

OR

(stock > 100 OR category = 'Electronics')

The overall result will be true if either the AND group (name and price) is true AND the OR group (stock or category) is true.

Edit Callback Function

Instead of using setEditButtonCondition You can opt to use setEditButtonConditionCallback to provide your own callback

Delete Button Conditions

You can decide to not specify the group operator which by default it will use AND operator as a fallback

Specifying Group Operator

How to Set Conditions:

Case 1: Simple OR condition (Conditions connected by OR):

This will return true if either name is equal to 'rrrooo' OR price is equal to 566.

Case 2: Simple AND condition (Conditions connected by AND):

This will return true if both name is equal to 'rrrooo' AND price is equal to 566.

Case 3: Mixed AND and OR (More complex logic with groups):

This will evaluate like:

(name = 'rrrooo' AND price = '566')

OR

(stock > 100 OR category = 'Electronics')

The overall result will be true if either the AND group (name and price) is true AND the OR group (stock or category) is true.

Delete Callback Function

Instead of using setEditButtonCondition You can opt to use setEditButtonConditionCallback to provide your own callback

File Import and Template using Form Action

Import DownloadLabel and Import TemplateName are Optional

File Import and Template using Input Action

Import DownloadLabel and Import TemplateName are Optional

Custom Add Form

Custom Add Form Header/Title

Custom Edit Form

THe id Of Inputs Should have the datatable id passed eg dataTable_editModalprice

Where dataTable is the id of datatable

Custom Edit Form With Select

Custom Edit Form Header/Title

Dialog Size

Add Dialog Size

Edit Dialog Size

Actions button Mode

DropDown

Default

View Source Modes

Link

Modal

Custom View Form Header

Values To Show On View Modal

View Dialog Size

Enable Search

Custom Columns Before Actions Columns

Custom Columns Before Actions Columns Without Being Escaped

Custom Columns Before Actions Columns With Callback Visibility

Custom Columns Before Actions Columns With Boolean Visibility

Custom Columns After Actions Columns

Custom Columns After Actions Columns Without Being Escaped

Custom Columns After Actions Columns With Callback Visibility

Custom Columns After Actions Columns With Boolean Visibility

Data Transformation

Enable Pagination

๐Ÿ–ฅ Rendering the Table

๐Ÿงผ Handling Form Submissions

โœ… Example a Simple Workflow Without Joins

Columns to add and Columns to Edit support using both associative and indexed array

โœ… Example a Simple Workflow With Add Permission

โœ… Example a Simple Workflow With Datatable Buttons

โœ… Example a Simple Workflow With Custom Add and Edit Form

โœ… Example a Simple Workflow With Joins and Search Functionality

โœ… Example a Simple Workflow With Custom Add and Edit Form

โœ… Example a Simple Workflow With Data Transformation,Joins and Custom Columns

โœ… Example a Simple Workflow With Classes For Data Fetching

โœ… Example a Simple Workflow With Report Mode

โœ… Example a Simple Workflow With Dialog Size

โœ… Example a Simple Workflow With Action Buttons in Dropdown Mode

โœ… Example a Simple Workflow With View Source(Modal) and Action Button Modes(DropDown)

โœ… Example a Simple Workflow With View Source(Link) and Action Button Modes(Default)

โœ… Example a Simple Workflow With Delete Conditions

โœ… Example a Simple Workflow With Delete Callback


All versions of data-display with dependencies

PHP Build Version
Package Version
Requires phpoffice/phpspreadsheet Version ^4.2
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 revaycolizer/data-display contains the following files

Loading the files please wait ...