Download the PHP package fersot/excel-to without Composer
On this page you can find all versions of the php package fersot/excel-to. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fersot/excel-to
More information about fersot/excel-to
Files in fersot/excel-to
Package excel-to
Short Description Laravel package that converts Excel/CSV files to JSON, Collection, or Array — with fluent API, sheet selection, column filtering, and export support.
License MIT
Homepage https://github.com/fersot/excel-to
Informations about the package excel-to
Laravel Excel to JSON / Collection / Array
A Laravel package for converting Excel and CSV files to JSON, Laravel Collections, or PHP Arrays — with a fluent API, multi-sheet support, column filtering, date formatting, and export capabilities.
Installation
Laravel auto-discovers the service provider and facade automatically.
Optionally publish the config file:
Quick Start
Reading Files
Load from path
Load from Laravel UploadedFile
Load a CSV
Output Formats
Fluent Options
All options can be chained in any order.
Select a Sheet
With a single-sheet file the result is a flat array. With multiple sheets, each sheet is a key in the result.
Skip Empty Rows
Custom Header Row
Useful when the first row is a title and headers start on row 2:
Date Format
Filter Columns
Exporting to Excel
Configuration
After publishing, edit config/excel-to.php:
Options set via the fluent API always override config values.
Full Example
Requirements
| Dependency | Version |
|---|---|
| PHP | ^8.1 |
| Laravel | ^9.0 \| ^10.0 \| ^11.0 \| ^12.0 |
| PhpSpreadsheet | ^1.29 \| ^2.0 |
Testing
25 tests covering all features.
Author
Hember Colmenares — GitHub
Support Me ☕️
If you find this package useful, consider buying me a coffee.
License
MIT — see LICENSE.
All versions of excel-to with dependencies
phpoffice/phpspreadsheet Version ^1.29|^2.0
illuminate/support Version ^9.0|^10.0|^11.0|^12.0