spatie/pdf-to-image
Convert PDF pages to images with this simple PHP class built on Imagick and Ghostscript. Save as jpg, jpeg, png, or webp, render any page, and check page counts. Requires PHP 8.2+.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/browsershot | 0.91 | Browsershot renders web pages to images or PDFs using Puppeteer and headless Chrome. Accept HTML, local files, or URLs, run JavaScript, capture body HTML and triggered requests, and customize headless behavior from PHP. | 5,252 | 5,311 | 506 | 3M | 0 | 69.4 | 44.6 | MIT | 1 week ago | |
| spatie/string | 0.89 | Spatie's String package offers fluent, chainable string handling for PHP. Wrap native strings with the string() helper, then manipulate them using methods like between, toUpper, toLower, and offset access for cleaner, more readable code. | 559 | 570 | 26 | 20K | 0 | 19.3 | 23.3 | MIT | 6 months ago | |
| spatie/url | 0.89 | Immutable URL parser/builder for PHP. Parse scheme, host, path and query, then fluently transform parts (withHost, withPath, withScheme) and manage query parameters. Supports allowed/sanitized schemes for safer URL handling. | 738 | 751 | 59 | 679K | 0 | 12.4 | 40.9 | MIT | 2 years ago | |
| spatie/color | 0.88 | PHP library for color parsing, conversion, and comparison. Supports CSS named colors plus RGB/RGBA/ARGB, Hex, HSL/HSLA, HSB, CMYK, CIELab, and XYZ. Includes WCAG contrast ratio and Delta E distances (CIE76, CIE94, CIEDE2000). | 386 | 390 | 41 | 1M | 0 | 16.1 | 50.6 | MIT | 8 months ago | |
| pdfcrowd/pdfcrowd | 0.88 | PHP client library for the PDFCrowd API that converts HTML, URLs, and images to PDF and other formats. Configure custom headers, footers, page templates, encryption, and rendering options, then stream or save the generated output to disk. Installs easily via Composer. | 62 | 63 | 49 | 23K | 1 | 1.9 | 35.4 | MIT | — | |
| spatie/macroable | 0.88 | Add methods to any class at runtime with Spatie’s Macroable trait. Register macros with closures or callables and call them like native methods; macros are bound to the class instance for access to $this. Inspired by Laravel’s Macroable implementation. | 731 | 740 | 24 | 3M | 0 | 10.5 | 50.9 | MIT | 9 months ago | |
| spatie/fractalistic | 0.88 | Developer-friendly wrapper around League Fractal to transform API data with less boilerplate. Build resources, apply transformers, includes, and output arrays with a fluent API or one-liner syntax. Great for PHP projects; Laravel users may prefer laravel-fractal. | 383 | 385 | 32 | 429K | 0 | 17.2 | 44.3 | MIT | 8 months ago | |
| spatie/pdf-to-text | 0.87 | Extract text from PDF files in PHP using Spatie’s pdf-to-text wrapper around the pdftotext binary (Poppler/Xpdf). Simple API (Pdf::getText), supports custom binary paths and options, ideal for Laravel apps needing fast PDF text extraction. | 1,036 | 1,045 | 133 | 493K | 0 | 15.6 | 37.3 | MIT | 11 months ago | |
| pxlrbt/laravel-pdfable | 0.87 | pxlrbt/laravel-pdfable adds a lightweight trait to Eloquent models for generating PDFs. Point a model at a Blade view, then download or stream the finished PDF with a single method call—keeping document generation out of your controllers. Handy for invoices, reports, and exports. | 76 | 75 | 8 | 183 | 0 | 8.5 | 7.8 | MIT | 7 months ago | |
| ensepar/tcpdf | 0.87 | A Laravel wrapper for TCPDF that simplifies generating PDF files from HTML, with configuration for fonts, page settings, and output options, plus service provider and facade integration for use within Laravel applications. | 0 | 7 | — | 72 | — | 0.0 | 25.7 | — | — | |
| pontedilana/php-weasyprint | 0.87 | PhpWeasyPrint is a PHP wrapper for WeasyPrint that generates PDFs from URLs or HTML. Inspired by Snappy and built as a drop-in replacement, it offers a strictly typed GeneratorInterface and requires PHP 8.3+ plus WeasyPrint 60 or greater. | 80 | 79 | 13 | 50K | 1 | 19.7 | 42.5 | MIT | 5 months ago | |
| spatie/image | 0.87 | spatie/image provides an expressive, chainable PHP API for common image manipulation. Resize to fit a bounding box without altering aspect ratio, apply greyscale, adjust brightness and quality, rotate, sharpen, and save or overwrite images in just a few lines. Ideal for Laravel and PHP apps. | 1,367 | 1,389 | 143 | 4M | 0 | 40.9 | 56.6 | MIT | 3 days ago | |
| tfox/mpdf-port-bundle | 0.86 | A Symfony bundle that integrates the mPDF library, providing service configuration and a straightforward way to generate PDFs from HTML in Symfony applications. | 0 | 1 | — | 2K | — | 0.0 | 46.2 | — | — | |
| grabzit/grabzit | 0.86 | Official GrabzIt PHP library for capturing website screenshots, PDFs, and web data through the GrabzIt API. Add screenshot, PDF generation, HTML snapshot, and scraping features to Laravel or PHP applications with a simple client. | 70 | — | 33 | — | 0 | 2.3 | 3.1 | MIT | 8 years ago |
|
| spatie/image-optimizer | 0.86 | Optimize PNG, JPG, WEBP, AVIF, SVG and GIF images in PHP by running them through a chain of tools like JpegOptim, Optipng, Pngquant and SVGO. It auto-detects installed binaries and overwrites files in place with smaller versions. | 2,884 | 2,920 | 225 | 5M | 0 | 50.7 | 52.7 | MIT | 3 days ago | |
| soqrate/html2pdf | 0.86 | soqrate/html2pdf is a Laravel/PHP package for converting HTML and Blade templates into PDF documents. It provides a simple API for generating downloadable or streamable PDFs, with configurable options for page size, orientation, and styling. | 0 | 1 | — | 0 | — | 0.0 | — | — | — | |
| gotenberg/gotenberg-php | 0.86 | A PHP client for the Gotenberg API, letting you convert HTML, Markdown, Word, Excel, and URLs into PDFs using Chromium and LibreOffice, with a simple, framework-agnostic interface. | 403 | 390 | 22 | 344K | 0 | 33.0 | 47.6 | MIT | 1 week ago | |
| netgen/htmlpdfapi | 0.85 | Netgen HTMLPDFAPI is a PHP client for the HTMLPDFAPI service that converts HTML to PDF. Send raw HTML or a URL, configure your API credentials, and generate PDFs for invoices, reports, and other documents from your application. | 10 | 10 | 5 | 0 | 0 | 0.1 | — | GPL-2.0 | — | |
| psliwa/php-pdf | 0.85 | Pure-PHP library for generating PDF documents. Build pages with text, images, shapes, colors, and barcodes; supports fonts, transformations, and simple drawing APIs. Useful for reports, invoices, and dynamic PDFs without external binaries. | 334 | 345 | 78 | 2K | 57 | 20.9 | 35.0 | MIT | — | |
| itul/tesseract | 0.85 | A Laravel package that integrates Tesseract OCR to extract text from images through a simple, configurable API. Supports multiple languages, image preprocessing, and straightforward setup for PHP and Laravel applications. | 0 | 0 | — | 356 | — | 0.0 | 35.3 | — | — |
How can I help you explore Laravel packages today?