Download the PHP package hayderhatem/filament-excel-import without Composer

On this page you can find all versions of the php package hayderhatem/filament-excel-import. 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-excel-import

Filament Excel Import

A powerful Excel import package for Filament that provides seamless Excel file import functionality with automatic column mapping and memory-efficient processing.

Installation

You can install the package via composer:

Features

Usage

Basic Setup

Replace Filament's CanImportRecords trait with CanImportExcelRecords in your resource:

Configuration Options

The package supports all of Filament's original import options plus additional Excel-specific features:

Multi-Sheet Excel Files

When importing Excel files with multiple sheets, users can select which sheet to import:

The import modal will automatically show a sheet selector dropdown if multiple sheets are detected.

Additional Form Components

You can add custom form fields to the import modal:

Access additional form data in your importer:

Memory Optimization & Streaming

Automatic Streaming

The package automatically detects large files and switches to streaming mode to prevent memory exhaustion:

Manual Streaming Control

Force streaming mode on or off:

Memory Usage Comparison

File Size Standard Import Streaming Import
1MB ~10MB RAM ~5MB RAM
100MB Memory Error ~5MB RAM
1GB Memory Error ~5MB RAM

Advanced Configuration

Custom Job

You can use your own import job class:

Error Handling

The package provides user-friendly error messages for common database errors:

Custom Error Messages

Add custom error message translations:

File Support

Supported Formats

File Upload Behavior

API Compatibility

The package is a drop-in replacement for Filament's CanImportRecords trait:

Filament Method Supported Notes
importer() Fully compatible
job() Fully compatible
chunkSize() Fully compatible
maxRows() Fully compatible
headerOffset() Fully compatible
options() Fully compatible
fileValidationRules() Enhanced for Excel

Additional Methods

Method Description
useStreaming(bool\|null) Control streaming mode
streamingThreshold(int) Set auto-streaming threshold
activeSheet(int) Set Excel sheet to import
additionalFormComponents(array) Add custom form fields

Migration from CanImportRecords

Migrating from Filament's built-in import is simple:

Step 1: Update the Trait

Step 2: No Other Changes Required

All your existing code will work exactly the same! The package is designed as a drop-in replacement.

Step 3: Optional Enhancements

Take advantage of new features:

Testing

The package includes comprehensive tests:

Requirements

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security-related issues, please email the maintainer instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of filament-excel-import with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^10.0|^11.0
filament/filament Version ^3.2
phpoffice/phpspreadsheet Version ^1.29.9|^2.0
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 hayderhatem/filament-excel-import contains the following files

Loading the files please wait ....