# PhpSpreadsheet

A pure PHP library for reading and writing spreadsheet files

Repository: https://github.com/PHPOffice/PhpSpreadsheet
Canonical: https://ross.abutalabs.com/products/phpspreadsheet
Homepage: https://phpspreadsheet.readthedocs.io
Language: PHP
License: MIT
License Family: permissive
Topics: php, spreadsheet, excel, libreoffice, xlsx, ods, xls, phpexcel, sylk, office, msexcel, gnumeric, hacktoberfest
Last push: 2026-08-22T05:04:56+00:00
Link (homepage): https://phpspreadsheet.readthedocs.io

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 80, longevity 100
- inputs: {"age_days": 3727, "days_push": 11, "days_rel": 52, "gap_med": 0.0, "n_releases_24m": 89}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 13980, forks 3627 (observed 2026-08-28T04:11:05.255946+00:00)

## What it is
PhpSpreadsheet is a pure PHP library providing classes to read and write spreadsheet files in formats such as Excel (.xlsx, .xls), LibreOffice Calc (.ods), CSV, Gnumeric, SYLK, and PDF. It is the successor to PHPExcel and supports formulas, styling, and cell manipulation across formats.

## Use cases
- generate Excel xlsx reports from PHP
- read and parse uploaded xlsx files
- convert CSV to Excel format
- export data to ODS or PDF spreadsheets
- manipulate spreadsheet cells, formulas, and styles in PHP
- import Excel data into a database

## When to choose
- you need to read or write Excel, ODS, or CSV files from PHP without external office software
- you need formula evaluation, styling, or multi-format spreadsheet support
- you are migrating from the deprecated PHPExcel library

## When to avoid
- you work outside PHP
- you only need lightweight CSV handling (use a simple CSV parser)
- you need extremely fast streaming of very large spreadsheets with minimal memory
- you need to render complex native Excel charts or pivot tables

## Facets
- artifact type: library
- maturity: stable
- function: serialization, file-system, csv, pdf
- domain: spreadsheets, files, web-development, developer-tools
- platform: php, cross-platform
- tags: excel, xlsx, ods, xls, spreadsheet, libreoffice, gnumeric, sylk, phpexcel

## Member repositories
- PHPOffice/PhpSpreadsheet (main) score 93
- PHPOffice/PHPExcel (mirror) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:05.255946+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-29T17:12:54.048030+00:00, confidence not recorded.
  - readme: https://github.com/PHPOffice/PhpSpreadsheet (fetched 2026-08-28T04:11:05.255946+00:00, sha 21cc8d50df89)
  - homepage: https://phpspreadsheet.readthedocs.io (fetched 2026-08-29T08:06:49.549464+00:00, sha 9fd6aa48889f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
