Parsel is a PHP 8.4 package that wraps the liteparse `lit` CLI to extract text, structured data, and screenshots from PDFs, Word documents, spreadsheets, presentations, and images — all locally without sending files to external services. It provides a fluent API with features like page selection, lazy streaming for large files, OCR support via Tesseract, password-protected file handling, DPI control, and a fake runner for testing without the binary. Install via Composer and use `vendor/bin/parsel-install-lit` to set up the underlying binary.
Table of contents
# A single API across file types# Positioned text with coordinates# Page selection and streaming# OCR for scanned documents# Rendering page previews# Passwords and rendering options# Testing without the binary# Installation47.3K Impressions2 Comments