Download the PHP package cswni/filament-export without Composer
On this page you can find all versions of the php package cswni/filament-export. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cswni/filament-export
More information about cswni/filament-export
Files in cswni/filament-export
Package filament-export
Short Description Customizable export and print functionality for Filament Admin Panel
License MIT
Informations about the package filament-export
Filament Export - Spanish translation
Customizable export and print functionality for Filament Admin Panel.
This package provides a bulk action and header action to export your filament tables easily.
Requirements
- PHP 8
- Filament 2.0
Dependencies
Installation
Using
Simple Usage
Bulk Action
You can export selected rows with the bulk action.
Header Action
You can filter, search, sort and export your table with the header action.
Since ButtonAction is deprecated you may use this action with ->button() instead.
Full Usage
Both actions provide functions for configuration.
You can also use default bulk action and header action functions to customize actions.
Performance Tips for Large Datasets
- Since header action does server-side pagination you may choose header action over bulk action.
- You may disable preview.
- You may enable direct download.
Configuration
Publish configuration
You can configure these settings:
Overriding Views
Publish views
This package has two views:
-
"components\table_view.blade.php" view is used for preview.
-
"pdf.blade.php" view is used as pdf export template.
- "print.blade.php" view is used as print template.
Using Custom Variables In Templates
or use closures
Then use them in the templates as regular blade variables:
Using Snappy
By default, this package uses dompdf as pdf generator.
If you want to use Snappy instead you need to install barryvdh/laravel-snappy to your project and configure it yourself. (See barryvdh/laravel-snappy for more information.)
To use snappy for PDF exports:
- You can simply add ->snappy() to your actions.
or
- You can update the config file to use it as default.
All versions of filament-export with dependencies
filament/filament Version ^2.0
barryvdh/laravel-dompdf Version ^2.0
spatie/simple-excel Version ^3