PHPackages                             beastbytes/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. beastbytes/pdf

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

beastbytes/pdf
==============

PDF Generator framework.

014PHP

Since Aug 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/beastbytes/pdf)[ Packagist](https://packagist.org/packages/beastbytes/pdf)[ RSS](/packages/beastbytes-pdf/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

PDF
===

[](#pdf)

PDF document generation and saving or outputting the document.

Actual PDF document generation is performed by separate interchangeable packages that use a particular PDF library.

For license information check the [LICENSE](LICENSE.md) file.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require --prefer-dist BeastBytes/pdf

```

or add

```
"beastbytes/pdf": "~1.0.0"
```

to the `require` section of your composer.json.

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

[](#basic-usage)

```
$document = $pdf
    ->generate('viewName')
    ->withAuthor('A. U. Thor')
    ->withSubject('Subject')
    ->withTitle('Title')
;

$pdf->output($document, Pdf::DESTINATION_INLINE);
```

### Localised View

[](#localised-view)

The document can use localised views using the `withLocale()` method

```
$document = $pdf
    ->withLocale('de_DE')
    ->generate('viewName')
    ->withAuthor('A. U. Thor')
    ->withSubject('Subject')
    ->withTitle('Title')
;

$pdf->output($document, Pdf::DESTINATION_INLINE);
```

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![beastbytes](https://avatars.githubusercontent.com/u/1470144?v=4)](https://github.com/beastbytes "beastbytes (16 commits)")

### Embed Badge

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

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

###  Alternatives

[tarfin-labs/easy-pdf

Makes pdf processing easy.

1719.9k](/packages/tarfin-labs-easy-pdf)

PHPackages © 2026

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