# spatie/simple-excel

Read and write simple Excel and CSV files

Repository: https://github.com/spatie/simple-excel
Canonical: https://ross.abutalabs.com/products/simple-excel
Homepage: https://spatie.be/open-source
Language: PHP
License: MIT
License Family: permissive
Topics: excel, csv, write, read, export, import, generator, lazycollection
Last push: 2026-06-15T06:21:41+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 87, release rhythm 77, longevity 100
- inputs: {"age_days": 2507, "days_push": 79, "days_rel": 79, "gap_med": 84, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1368, forks 139 (observed 2026-08-28T04:04:31.600705+00:00)

## What it is
A PHP library for reading and writing simple Excel (xlsx) and CSV files with a fluent API. It uses generators and LazyCollections to keep memory usage low even when processing very large files.

## Use cases
- read rows from a csv file in php
- export data to an excel xlsx file
- import large csv files without running out of memory
- convert csv to xlsx
- stream spreadsheet rows lazily
- write database records to an excel export

## When to choose
- you need simple row-based reading or writing of xlsx or csv in PHP
- you work with large files and need low memory usage via generators
- you want a Laravel-friendly API returning LazyCollections

## When to avoid
- you need complex spreadsheet features like formulas, styling, charts, or multiple sheets
- you need to manipulate existing Excel files cell-by-cell
- you are not working in PHP

## Facets
- artifact type: library
- maturity: active
- function: file-system, data-science, etl
- domain: files, spreadsheets, developer-tools
- platform: php
- tags: excel, csv, xlsx, lazy-collection, low-memory, reader, writer, spatie

## Member repositories
- spatie/simple-excel (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:31.600705+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:41:04.342764+00:00, confidence not recorded.
  - readme: https://github.com/spatie/simple-excel (fetched 2026-08-28T04:04:31.600705+00:00, sha f4c03696b301)
  - homepage: https://spatie.be/open-source (fetched 2026-08-29T11:58:04.057204+00:00, sha 6ed5abf69535)
  - site_page: https://spatie.be/docs (fetched 2026-08-29T11:58:04.060511+00:00, sha 08e024d86d95)
  - site_page: https://spatie.be/about-us (fetched 2026-08-29T11:58:04.062941+00:00, sha d3cb88e4b34c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
