Download the PHP package yassin/ypdf without Composer
On this page you can find all versions of the php package yassin/ypdf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package ypdf
Short Description Y-PDF: Headless browser PDF generator for Laravel supporting full HTML/CSS/JS stacks.
License MIT
Informations about the package ypdf
Y-PDF
A Laravel-ready package that uses a headless Chromium instance to render full HTML, CSS, JavaScript, Bootstrap, Tailwind, and jQuery experiences into pixel-perfect PDFs. Stop fighting traditional PHP PDF libraries that ignore styles — render the same markup your frontend already produces.
Highlights
- Uses chrome-php/chrome, so anything Chromium can paint (Vue, React, Livewire, Blade + Tailwind, etc.) will appear in the PDF.
- Simple API:
YPdf::renderFromView()andYPdf::renderFromHtml()return binary data or save directly to disk. - Configurable viewport, margins, background printing, sandbox flags, and custom wait strategies before capturing the PDF.
- Ships with a publishable config file so each project can point to its own Chromium binary, temp directory, and timeouts.
- Designed to live inside its own repository — drop this folder into a separate git repo, push to GitHub, and submit to Packagist. Afterwards, require it in any Laravel app with Composer.
Package Structure
Installation (after publishing to Packagist)
Want to write your own driver or call a remote rendering API instead? Set YPDF_DRIVER
to a custom driver name and bind an implementation of YPdf\Contracts\PdfEngine in a service
provider—no Chromium dependency required.
Ensure Chromium is installed on the server, or point HEADLESS_PDF_CHROME_BINARY to a bundled binary. Example .env entries:
Usage
Need to render an authenticated page? Generate a signed URL and call YPdf::renderFromUrl($url).
Roadmap
- Additional drivers (Playwright, remote rendering service)
- Queued rendering + retry helpers
- HTML pre-processors for asset inlining and critical CSS extraction
Contributions welcome once the package is in its own repository!
All versions of ypdf with dependencies
illuminate/support Version ^10.0
illuminate/filesystem Version ^10.0
illuminate/view Version ^10.0