Download the PHP package tomshaw/electricgrid without Composer

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

Electric Grid 🔌

A powerful Livewire data table package. A great choice for projects that require a data table solution.

GitHub Workflow Status issues forks stars GitHub license

For a complete demonstration see the Electric Grid Demo repository.

Features

  1. Easy Installation: Use a simple command for installation and package updates.

  2. Columns: Add columns to your grid with various options including sortable, styleable, exportable and visible.

  3. Filters: Supports text, number, select, multiselect, boolean, timepicker, datepicker, and datetimepicker.

  4. Mass Actions: Provides the capability to execute operations on multiple rows of data simultaneously.

  5. Table Exports: Tables can be exported in various formats including xlsx, csv, pdf, and html out of the box.

  6. Search Input: You can enable search functionality by specifying the columns you wish to search.

  7. Letter Search: This feature allows you to search data based on specific letters in the specified columns.

  8. Toggleable Columns: Hide or show columns useful for focusing on the most relevant data.

  9. Themes: Uses a single blade template under 230 lines of html making it super easy to theme.

  10. Testing: Provides a command for running tests to ensure everything works as expected.

Installation

You can install the package via composer:

Run the installation command.

Run the update command for package updates:

Make sure to add the styles and scripts directives to your layout.

Add the component to your blade template where you plan to use it.

Here the namespace is App\Livewire\Tables and the component name is OrdersTable.

Usage

The Builder Method.

Populating your table is done by using the builder method.

The builder method must return an instance of Illuminate\Database\Eloquent\Builder.

Adding Columns.

Use Columns to present data in your grid.

Column Filters.

Filters allow you to filter data displayed in the grid.

Data attributes can be added to filters using the addDataAttribute method.

Filter::number('id')

This creates a number filter for the 'id' field.

Filter::text('name')

This creates a text filter for the 'name' field.

Filter::select('status')

This creates a select filter for the 'status' field.

Filter::number('total')

This creates a number filter for the 'total' field.

Filter::boolean('invoiced')

This creates a boolean filter for the 'invoiced' field.

Filter::datepicker('created_at')

This creates a date picker filter for the 'created_at' field.

Filter::datetimepicker('updated_at')

This creates a datetime picker filter for the 'updated_at' field. The datetime picker uses the user's local date and time format.

Filter Column Types

Filters should be used with the appropriate database column types.

Mass Actions.

Mass or bulk actions provide the capability to execute operations on multiple rows of data simultaneously.

You can group actions together using the group and groupBy helper methods.

Table Exports.

Tables can be exported in the following formats xlsx, csv, pdf, html. The type of export is decided by Extension-based format determination. If you supply a file name of SalesOrders.xlsx an Excel spreadsheet will be generated.

Custom Excel Exports

Excel exports can be customized with specific styles and column widths.

Uses the styles and columnWidths methods to apply custom styles and column widths to the Excel file.

The styles method returns an array of cell styles. The array keys are cell references and the values are arrays of style definitions. For example, '1' => ['font' => ['bold' => true]] applies a bold font style to all cells in row 1, and 'B2' => ['font' => ['italic' => true]] applies an italic font style to the cell at column B, row 2.

The columnWidths method returns an array of column widths. The array keys are column letters and the values are the widths of the columns. For example, 'A' => 20 sets the width of column A to 20.

Here's an example of how to define custom styles and column widths for Excel exports:

Search Input

Enable by adding the following property filled with the columns names you wish to search.

Letter Search

Enable by adding the following property filled with the columns names you wish to search.

Requirements

The package is compatible with Laravel 11+ and PHP 8.2 and 8.3.

Testing

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). See License File for more information.


All versions of electricgrid with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version ^11.0
illuminate/console Version ^11.0
illuminate/contracts Version ^11.0
illuminate/support Version ^11.0
livewire/livewire Version ^3.4
maatwebsite/excel Version ^3.1
phpoffice/phpspreadsheet Version ^1.29
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 tomshaw/electricgrid contains the following files

Loading the files please wait ....