---
title: "How to Create PDFs in PHP"
url: https://daily.dev/posts/how-to-create-pdfs-in-php-dtk3js62p
source_url: https://www.honeybadger.io/blog/pdf-in-php/
type: article
source: "Honeybadger"
published: 2022-12-01T01:44:54.681Z
updated: 2024-08-30T02:20:32.031Z
tags: ["database", "html", "php"]
reading_time: 7
upvotes: 11
comments: 2
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Create PDFs in PHP

**[Honeybadger](https://daily.dev/sources/honeybadger)** · 7 min read · 11 upvotes · 2 comments

## Summary

How to create PDFs in PHP Portal Document Format (PDF) is among the most popular file formats today. The contents of the PDF document will appear the same on all platforms. You can access the complete code that will be used in this tutorial from this GitHub repository. You should also have installed XAMPP on your computer.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.honeybadger.io/blog/pdf-in-php/>

## Community discussion

Top comments from developers on daily.dev.

**@talanon** · 0 upvotes

> I personaly prefere to use WKHTMLTOPDF

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#database](https://daily.dev/tags/database), [#html](https://daily.dev/tags/html), [#php](https://daily.dev/tags/php)

[View this post on daily.dev](https://daily.dev/posts/how-to-create-pdfs-in-php-dtk3js62p)
