PHP PDF

Open-source PHP projects categorized as PDF

Top 23 PHP PDF Projects

  1. Dompdf

    HTML to PDF converter for PHP

    Project mention: dompdf Alternatives: HTML to PDF in Laravel Without a Headless Browser | dev.to | 2026-07-15

    dompdf is a pure PHP renderer, which is exactly why people reach for it: composer require and you are generating PDFs with no binaries and no system dependencies. The cost is the rendering engine. dompdf implements CSS 2.1 with a partial layer of CSS3, and that ceiling shapes everything you build on it.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. PHPWord

    A pure PHP library for reading and writing word processing documents

  4. laravel-dompdf

    A DOMPDF Wrapper for Laravel

    Project mention: Laravel 13 Generate a PDF and Email It as an Attachment (DomPDF and Mailable) | dev.to | 2026-11-13

    laravel-dompdf documentation

  5. browsershot

    Convert HTML to an image, PDF or string

    Project mention: How to Take a Website Screenshot in PHP (Browsershot and the API Alternative) | dev.to | 2026-07-17

    Browsershot is the most popular PHP screenshot library. It does not render anything itself; it shells out to a Node.js script that drives Puppeteer and a headless Chromium. So the API is clean PHP, but the work happens in a real browser:

  6. mPDF

    PHP library generating PDF files from UTF-8 encoded HTML

    Project mention: Generate, read, and merge PDFs in PHP — no GPL, no FPDI | dev.to | 2026-07-06

    Generating PDFs usually means mpdf, which is GPL-2.0. Fine for internal tools, a licensing headache the moment you ship it inside a commercial, OEM, or on-premise product.

  7. TCPDF

    Deprecated: PHP PDF library, superseded by tc-lib-pdf (https://github.com/tecnickcom/tc-lib-pdf)

  8. Snappy

    PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage (by KnpLabs)

  9. tc-lib-pdf

    PHP PDF Library (TCPDF)

  10. pdf-to-image

    Convert a pdf to an image

  11. FPDI

    FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF.

  12. libresign

    Control how your documents get signed

  13. Shaark

    Self-hosted platform to keep and share your content: web links, posts, passwords and pictures.

  14. PHPJasper

    A PHP report generator

  15. gotenberg-php

    🐘 A PHP client for interacting with Gotenberg.

  16. tcpdf-laravel

    TCPDF helper for laravel

  17. i-librarian-free

    I, Librarian - open-source version of a PDF managing SaaS.

  18. PHPPdf

    Pdf and graphic files generator library written in php

  19. docking

    DocKing: Your shared-microservice that takes over the document templates management & render/export PDF

  20. invoice-as-a-service

    💰 Simple invoicing service (REST API): from JSON to PDF

  21. ibis-next

    A PHP tool that helps you write eBooks in markdown and convert to PDF, EPUB and HTML

  22. php-weasyprint

    PHP library allowing PDF generation or snapshot from an URL or an HTML page. Wrapper for Kozea/WeasyPrint

  23. WeasyPrintBundle

    Easily create PDF in Symfony by converting HTML using WeasyPrint

  24. FileBasedMiniDMS

    This php script sorts your documents (by using hardlinks) into subfolders based on the hashtags it finds in your documents filenames.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

PHP PDF discussion

Log in or Post with

PHP PDF related posts

  • Laravel 13 Generate a PDF and Email It as an Attachment (DomPDF and Mailable)

    1 project | dev.to | 13 Nov 2026
  • 15,000 e-invoices, 12 generators: 4 setups pass every validator and still bill the wrong amount

    5 projects | dev.to | 24 Oct 2026
  • How to Take a Website Screenshot in PHP (Browsershot and the API Alternative)

    1 project | dev.to | 17 Jul 2026
  • dompdf Alternatives: HTML to PDF in Laravel Without a Headless Browser

    3 projects | dev.to | 15 Jul 2026
  • Browsershot Alternatives: HTML to Image in Laravel Without Puppeteer

    2 projects | dev.to | 11 Jul 2026
  • Generate, read, and merge PDFs in PHP — no GPL, no FPDI

    2 projects | dev.to | 6 Jul 2026
  • I shipped a website-to-PDF SaaS on WordPress — here's the stack

    2 projects | dev.to | 5 May 2026
  • A note from our sponsor - SaaSHub
    www.saashub.com | 13 Nov 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source PDF projects in PHP? This list will help you:

# Project Stars
1 Dompdf 11,208
2 PHPWord 7,589
3 laravel-dompdf 7,294
4 browsershot 5,251
5 mPDF 4,709
6 TCPDF 4,524
7 Snappy 4,473
8 tc-lib-pdf 1,932
9 pdf-to-image 1,461
10 FPDI 1,251
11 libresign 844
12 Shaark 593
13 PHPJasper 491
14 gotenberg-php 404
15 tcpdf-laravel 357
16 i-librarian-free 357
17 PHPPdf 334
18 docking 269
19 invoice-as-a-service 218
20 ibis-next 124
21 php-weasyprint 80
22 WeasyPrintBundle 40
23 FileBasedMiniDMS 38

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that PHP is
the 13th most popular programming language
based on number of references?