PHP Package: spatie/laravel-pdf

Spatie's Laravel PDF is a powerful library for generating SEO-optimized PDFs effortlessly within Laravel applications.

Current Version: 1.8.0
Last Updated: 2025-09-12
PHP Requirement: ^8.2
Dependencies: None

Package Description

Laravel PDF by Spatie is a feature-rich PHP package that enables quick and efficient generation of SEO-friendly PDF documents in Laravel projects. With a comprehensive set of tools and customization options, this library simplifies the process of creating beautiful and accessible PDFs, enhancing the overall user experience.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 1.8.0

Download Download v1.8.0

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com

require_once 'libs/spatie/laravel-pdf/1.8.0/loader.php';
use Spatie\Pdf\Pdf;

$obj = new Pdf();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.