Download the PHP package sehsah/filament-remember-table without Composer

On this page you can find all versions of the php package sehsah/filament-remember-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 filament-remember-table

Filament Remember Table

Latest Version on Packagist

Let your users save the way they like a Filament table (filters, search, sorting, grouping, visible columns) as named views, and switch between them in one click.

Requirements

Installation

The install command publishes the config and migration and asks to run the migration. You can also do it by hand:

Usage

Add the trait to a page that has a table (usually a resource's list page) and put the actions in the header:

That's it. A Views button appears in the page header.

Preset views

Views defined in code show up for everyone and can't be edited or deleted by users:

filters() takes the raw filter form state, keyed by filter name. For a SelectFilter or TernaryFilter that is ['value' => ...]; for a multiple SelectFilter it is ['values' => [...]]; for a custom filter it is whatever its form fields are named.

Other preset options: search(), tab() (a key from the list page's getTabs()), perPage() and key() (a stable id for the URL).

Several tables on one page

Views are stored per page class. If you reuse the same page class for different tables, override the key:

What is saved

Part Config key Default
Filters filters on
Global search search on
Per-column searches column_searches on
Sort column and direction sort on
Grouping grouping on
Column visibility and order columns on
List page tab tab on
Records per page per_page off

Turn parts on or off in config/remember-table.php under remember.

Saved views are validated when they are applied: filters, columns, groups and tabs that no longer exist on the table are ignored, and columns you added after a view was saved still show up.

Configuration

How it behaves

Customizing the actions

Each action is a normal Filament action. To tweak one, alias the trait method and wrap it:

Available: saveTableViewAction(), updateTableViewAction(), manageTableViewsAction(), resetTableViewAction().

Testing

Roadmap

Changelog

See CHANGELOG.

License

The MIT License (MIT). See License File.


All versions of filament-remember-table with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
filament/filament Version ^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 sehsah/filament-remember-table contains the following files

Loading the files please wait ...