Package

Spatie Simple Excel

Read and write simple Excel and CSV files

Package

spatie/simple-excel

View on GitHub →

Overview

What Spatie Simple Excel does

Spatie's Simple Excel package simplifies the reading and writing of Excel and CSV files by minimizing memory usage through the use of generators.

This package is particularly useful for developers dealing with large datasets, as it ensures efficient memory handling. Simple Excel leverages Illuminate's LazyCollection, part of the Laravel framework, to process files row by row, which can be vital for performance in resource-constrained environments.

Developers can easily read files by pointing the package at a path, where it distinguishes between Excel and CSV formats based on the file extension. Once configured, it offers various methods to manage headers, including custom header names, use of existing headers, and even handling files without headers.

For those working with multi-sheet Excel documents, Simple Excel provides tools to navigate between sheets, select specific sheets by index or name, and verify the presence of a sheet. This can be particularly useful in scenarios where data is spread across multiple sheets.

The package also incorporates functionality to clean and format data during import. Methods to trim unwanted characters, convert headers to snake_case, and apply custom formatting ensure the imported data meets application requirements. For those utilizing OpenSpout, the package is compatible with versions 4.30 and 5, providing flexibility based on PHP runtime compatibility.

This overview was generated by AI from the package README and may not reflect the latest release.

Read the full README →

Spatie Simple Excel Related Articles

Five Hidden Features of the Laravel Excel Package image

Five Hidden Features of the Laravel Excel Package

Read article
Fast Excel 5.x Adds Streaming Imports and Safer Exports image

Fast Excel 5.x Adds Streaming Imports and Safer Exports

Read article
Laravel Excel 3.0 image

Laravel Excel 3.0

Read article
Excel Export for Laravel Nova image

Excel Export for Laravel Nova

Read article
Media Library Pro: Vue, React and Blade components to handle uploads (sponsor) image

Media Library Pro: Vue, React and Blade components to handle uploads (sponsor)

Read article
Spatie Shares Their Coding Guidelines as AI Skills image

Spatie Shares Their Coding Guidelines as AI Skills

Read article

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech

Let your users buy domains without leaving your app

If your Laravel app gives users a site, a storefront, or a workspace, they’ll eventually want their own domain. The name.com API lets them search, register, and connect one without leaving your product. It’s a clean REST API, so Laravel’s HTTP client is all you need.

Let your users buy domains without leaving your app

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift