---
title: "Parsel: Parse PDFs, Office Documents, and Images in PHP"
url: https://daily.dev/posts/parsel-parse-pdfs-office-documents-and-images-in-php-8qrk6y17h
source_url: https://laravel-news.com/parsel-parse-pdfs-office-documents-and-images-in-php
type: article
source: "Laravel News"
published: 2026-06-02T07:57:55.652Z
updated: 2026-08-24T07:05:24.554Z
tags: ["machine-learning", "php"]
reading_time: 3
upvotes: 19
comments: 2
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Parsel: Parse PDFs, Office Documents, and Images in PHP

**[Laravel News](https://daily.dev/sources/ln)** · 3 min read · 19 upvotes · 2 comments

## Summary

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.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://laravel-news.com/parsel-parse-pdfs-office-documents-and-images-in-php>

## Community discussion

Top comments from developers on daily.dev.

**@devdavidt** · 1 upvotes

> Thanks a lot this is very useful.

**@ax\_prashant** · 0 upvotes

> ![GIF](https://static.klipy.com/ii/f87f46a2c5aeaeed4c68910815f73eaf/d7/90/ArxCWaWh.gif)

## Similar posts on daily.dev

- [Extract PDF text in your browser with LiteParse for the web](https://daily.dev/posts/extract-pdf-text-in-your-browser-with-liteparse-for-the-web-lyswob0q8) · Simon Willison · 1 upvotes · 0 comments

---

Tags: [#machine-learning](https://daily.dev/tags/machine-learning), [#php](https://daily.dev/tags/php)

[View this post on daily.dev](https://daily.dev/posts/parsel-parse-pdfs-office-documents-and-images-in-php-8qrk6y17h)
