Download the PHP package asignua/filament-group-summaries without Composer

On this page you can find all versions of the php package asignua/filament-group-summaries. 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 filament-group-summaries

Filament Group Summaries

Stand With Ukraine Latest Version on Packagist Tests Total Downloads License Plumb score

Filament Group Summaries

Show a Filament table's column summaries in the group header row (they stay visible when the group is collapsed), hide the summary row drawn after each group, and give a group its own default sort direction. No Filament view is forked.

Requested in filamentphp/filament#19615 (summaries in the group header), with related asks #15353 (hide the summary per group) and #19753 (default direction for groups).

Screenshots

Summaries in the group header, one group collapsed

The same in dark mode

Coloured group headers with the summary row at the top, aligned under the columns

The same in dark mode

Requirements

Installation

Register the plugin on the panel (it links a tiny stylesheet after your theme):

Usage

Use SummaryGroup wherever you used Group; it extends it, so everything you already call still works.

Method What it does
summariesInHeader(bool\|Closure = true) Prints each group's summaries in its header row. Values respect filters and search.
summaryColumns(?array $names) Limits the header to these columns (default: every visible column with a summarizer).
columnLabels(bool = true) Show or hide the column name before its summaries.
hideTrailingSummary(bool\|Closure = true) Hides the per-group summary rows after the groups (the page / all-records totals in the footer stay).
position(SummaryPosition\|Closure) Bottom (default, Filament's own), Top (a summary row right under the group header, aligned under the columns; the row after the records is hidden) or Both.
color(string\|array\|Closure\|null) Tints the group header with a Filament colour (see below).
defaultDirection('asc'\|'desc') Direction applied when the user picks this group in the grouping dropdown.
makeDefaultOn(Table $table) defaultGroup() that uses the group's own direction.

Summary row at the top of the group

The row sits in the group header (so it stays visible when the group is collapsed) and a small Alpine component lines its cells up under the table's header cells. On a narrow screen, or if a header cell is missing, the cells wrap as a strip instead; a column hidden responsively (visibleFrom()) is hidden in the row too. Only the table layout is supported: in a grid / Stack / Split layout the top row (like summariesInHeader()) does not render. With Top or Both, summariesInHeader() is not needed (the top row replaces the strip).

Header colour

A shade map such as Color::Purple works too, and so does a closure returning one (a map without the 400 and 500 shades is ignored). The group key is null for a NULL value, so type it ?string. The tint uses the colour's own CSS variables, so custom colours and light/dark mode work. It is painted by an empty element inside the header (the header cell itself belongs to Filament's view), so the stylesheet is required.

For the table's default group use makeDefaultOn(); plain ->defaultGroup($group) keeps Table::defaultGroup()'s own direction argument ('asc').

How it works and its trade-offs

Filament has no hook for a group header, and index.blade.php is huge and changes every release, so the view is not overridden. Instead:

Trade-offs, honestly:

Gotchas

AI agents

resources/boost/guidelines/core.blade.php ships Laravel Boost guidelines.

Testing

See the CHANGELOG and the LICENSE.

More plugins by asign

All plugins: https://filamentphp.com/plugins?q=asign


All versions of filament-group-summaries with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
filament/filament Version ^5.11.2
illuminate/contracts Version ^12.0|^13.0
spatie/laravel-package-tools Version ^1.16
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 asignua/filament-group-summaries contains the following files

Loading the files please wait ...