spatie/pdf-to-text
Some data may be outdated — see provenance labels.
Extract text from a pdf observed · 2026-09-29
Health v2 · maintenance only
64/100
- Activity 77
- Release rhythm 27
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 164
- age_days: 3946
- days_rel: 330
- days_push: 140
- n_releases_24m: 2
Adoption not part of the score
1031 stars · 133 forks observed · 2026-09-29
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A PHP library that wraps the pdftotext binary to extract plain text from PDF files with a simple, fluent API. It requires the poppler-utils pdftotext executable to be installed on the system.
Use cases
- extract text from pdf files in php
- parse pdf content into plain text
- convert pdf documents to text
- read text from pdfs in a laravel app
- index pdf documents for search
- pull text out of pdf invoices
When to choose
- you need simple text extraction from PDFs in PHP
- you can install system binaries like poppler-utils
- you want a minimal, well-maintained wrapper around pdftotext
When to avoid
- you cannot install system-level binaries on your host
- you need layout, image, or table extraction rather than plain text
- you need OCR for scanned PDFs without a text layer
Facets
library · maturity stable
pdf parser ocr pdf files developer-tools php windows cli pdftotext-wrapper text-extraction poppler spatie linux macos
3 sources
- readme: https://github.com/spatie/pdf-to-text · fetched 2026-09-29 · 04dd4a5388d3
- homepage: https://freek.dev/348-a-package-to-extract-text-from-a-pdf · fetched 2026-08-29 · f4255c1afe6e
- site_page: https://freek.dev/about · fetched 2026-08-29 · e0ef9dccbb05
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| spatie/pdf-to-text | main | 64 |
For agents
markdown · JSON · MCP: product_card(name="spatie/pdf-to-text")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem