Download the PHP package ptplugins/filament-collapsible-column-group without Composer

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

Filament Collapsible Column Group

Collapsible (expand/collapse) column groups for FilamentPHP tables — v3, v4, and v5. Click a group header and the columns it spans fold away into a thin placeholder; click again to bring them back.

Wide tables with logically grouped columns (e.g. Q1 / Q2 / Q3 / Q4, or Address, Contact, Billing) get unreadable fast. This package turns any Filament ColumnGroup header into a toggle that collapses everything under it, so users can focus on the groups they care about. The collapsed state is remembered and survives sorting, filtering and pagination.

Single codebase across all three Filament major versions — same class, same API.

Buy us a beer

Installation

The package auto-discovers its service provider and registers its own JS/CSS through FilamentAsset. There is nothing to publish.

Quick start

Swap Filament's ColumnGroup for CollapsibleColumnGroup and call ->collapsible():

That's it. Each collapsible group header shows a − (expanded) or + (collapsed) icon; clicking it folds the columns it spans into a single thin placeholder cell so the row layout stays intact.

API

Method Default Description
collapsible(bool $collapsible = true, bool $collapsedByDefault = false) — Makes the group header a collapse/expand toggle. Pass collapsedByDefault: true to render it folded on first load.

CollapsibleColumnGroup extends Filament's ColumnGroup, so everything you already do with a column group keeps working — ->columns([...]), ->alignment(), ->wrapHeader(), and so on. collapsible() is purely additive; a group without it behaves exactly like a normal ColumnGroup.

How it works

The PHP class is a thin annotator. When a group is collapsible() it:

All behaviour lives in the bundled JS:

Because it only touches the public ColumnGroup API plus its own data-* hooks — never Filament's internal markup or CSS classes — the exact same code runs on Filament v3, v4 and v5 (Livewire 3 and 4).

Notes & gotchas

Requirements

License

MIT — see LICENSE.md.


Part of the ptplugins.com collection of FilamentPHP plugins.


All versions of filament-collapsible-column-group with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
filament/filament Version ^3.0 || ^4.0 || ^5.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 ptplugins/filament-collapsible-column-group contains the following files

Loading the files please wait ...