# WeasyPrint for PHP > A feature-rich PHP wrapper for the WeasyPrint Document Factory. A feature-rich PHP wrapper for the WeasyPrint Document Factory. ## Table of Contents - [Attachments & Metadata](/advanced/attachments.md): Embed file attachments and XMP metadata in PDFs. Supports EU e-invoicing standards like ZUGFeRD and Factur-X. - [Building the `Output`](/usage/output.md): Build PDF output and stream, download, or save it. Supports inline display, forced downloads, Flysystem, and Laravel Storage. - [Class-based PDFs](/frameworks/laravel/pdf-class.md): Create reusable, class-based PDFs in Laravel with WeasyPrint for PHP. Encapsulate source, filename, config, and headers in a single class. - [Configuration](/advanced/config.md): Configure WeasyPrint for PHP - all available options including PDF variants, versions, image optimisation, and more. - [Contributing](/contributing.md): How to contribute to WeasyPrint for PHP - development environment, tests, formatting, and commit guidelines. - [Creating a `Source`](/usage/source.md): Prepare HTML sources for PDF generation using strings, URLs, Renderable objects, or Source instances. - [Error Handling](/advanced/errors.md): All exceptions thrown by WeasyPrint for PHP, including configuration, source, build, and output errors. - [Framework Integrations](/frameworks.md): Framework integrations for WeasyPrint for PHP (previously WeasyPrint for Laravel). Now framework-agnostic with optional Laravel support. - [Getting Started](/usage/get-started.md): Get started with WeasyPrint for PHP (previously WeasyPrint for Laravel). Install the package and generate your first PDF in minutes. - [Laravel Integration](/frameworks/laravel.md): Laravel integration for WeasyPrint for PHP (previously WeasyPrint for Laravel) - service container binding, config publishing, facade, and class-based PDFs. - [Testing](/advanced/testing.md): Test your PDF generation with WeasyPrint::fake(), a built-in test double for Laravel, or mock the contract in any framework. - [The Factory](/usage/factory.md): Learn how to create and configure a WeasyPrintFactory instance for PDF generation, with support for dependency injection. - [Versions & Compatibility](/versions.md): Version compatibility table for WeasyPrint for PHP (previously WeasyPrint for Laravel), including supported WeasyPrint, Laravel, and PHP versions.