PHPackages                             fyre/pdf - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. fyre/pdf

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

fyre/pdf
========

An PDF generation library.

v3.0(6mo ago)0131MITPHP

Since Oct 13Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/elusivecodes/FyrePDF)[ Packagist](https://packagist.org/packages/fyre/pdf)[ RSS](/packages/fyre-pdf/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (12)Used By (1)

FyrePDF
=======

[](#fyrepdf)

**FyrePDF** is a free, open-source PDF generation library for *PHP*.

Table Of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Basic Usage](#basic-usage)
- [Methods](#methods)
- [Static Methods](#static-methods)

Installation
------------

[](#installation)

**Dependencies**

- Google Chrome

In Ubuntu:

```
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb

```

**Using Composer**

```
composer require fyre/pdf

```

In PHP:

```
use Fyre\Utility\Pdf;
```

Basic Usage
-----------

[](#basic-usage)

- `$source` is a string representing the source URL or HTML file.

```
$pdf = new Pdf($source);
```

**Create From HTML**

Generate a *Pdf* from a HTML string.

```
$pdf = Pdf::createFromHtml($html);
```

**Create From URL**

Generate a *Pdf* from a URL or file path.

- `$url` is a string representing the source URL or HTML file.

```
$pdf = Pdf::createFromUrl($url);
```

Methods
-------

[](#methods)

**To Binary**

Get the binary data.

```
$data = $pdf->toBinary();
```

**Save**

Save the pdf as a file.

- `$filePath` is a string representing the file path.

```
$pdf->save($filePath);
```

Static Methods
--------------

[](#static-methods)

**Get Binary Path**

Get the Chrome binary path.

```
$binaryPath = Pdf::getBinaryPath();
```

**Get Timeout**

Get the timeout.

```
$timeout = Pdf::getTimeout();
```

**Set Binary Path**

Set the Chrome binary path.

- `$binaryPath` is a string representing the Chrome binary path.

```
Pdf::setBinaryPath($binaryPath);
```

**Set Timeout**

Set the timeout.

- `$timeout` is a number representing the timeout.

```
Pdf::setTimeout($timeout);
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance66

Regular maintenance activity

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~37 days

Recently: every ~22 days

Total

11

Last Release

208d ago

Major Versions

v1.0.8 → v2.02025-10-20

v2.0 → v3.02025-10-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/fad81fd5941e3a637c8a5749d05ae3ed9314d5e2fee57f59c3d9ec3b41259c6b?d=identicon)[elusivecodes](/maintainers/elusivecodes)

---

Top Contributors

[![elusivecodes](https://avatars.githubusercontent.com/u/18050480?v=4)](https://github.com/elusivecodes "elusivecodes (11 commits)")

---

Tags

pdfpdf-generatorphp

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/fyre-pdf/health.svg)

```
[![Health](https://phpackages.com/badges/fyre-pdf/health.svg)](https://phpackages.com/packages/fyre-pdf)
```

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.3k](/packages/phpoffice-phpspreadsheet)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.1k57.6M131](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
