thephpleague/csv
CSV data manipulation made easy in PHP observed · 2026-08-28
Health v2 · maintenance only
86/100
- Activity 98
- Release rhythm 63
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 20.5
- age_days: 4657
- days_rel: 249
- days_push: 12
- n_releases_24m: 15
Adoption not part of the score
3480 stars · 351 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
League CSV is a lightweight, framework-agnostic PHP library for reading, writing, filtering, and converting CSV documents. It offers a straightforward API with memory-efficient streaming, query features, object mapping, and conversion to JSON, XML, or HTML.
Use cases
- parse csv files in php
- export database table to csv
- import csv records into a database
- convert csv to json or xml
- filter and query csv rows
- stream large csv files efficiently
- generate downloadable csv from php
When to choose
- you work in PHP and need robust CSV parsing or writing beyond native fgetcsv
- you need memory-efficient handling of large CSV files
- you want to map CSV records to PHP objects or DTOs
- you need to convert CSV to JSON, XML, or HTML
When to avoid
- you need a spreadsheet library with formula support like Excel files (use PhpSpreadsheet)
- your project is not in PHP
- you only need trivial one-line CSV parsing already covered by native PHP functions
Facets
library · maturity active
parser serialization data-science files developer-tools php csv csv-reader csv-writer data-conversion php-library data-engineering
3 sources
- readme: https://github.com/thephpleague/csv · fetched 2026-08-28 · 19c229831c1d
- homepage: https://csv.thephpleague.com · fetched 2026-08-29 · c6aa2d236035
- site_page: https://csv.thephpleague.com/9.0 · fetched 2026-08-29 · 90691f7ad69b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| thephpleague/csv | main | 86 |
For agents
markdown · JSON · MCP: product_card(name="thephpleague/csv")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem