PHPackages                             tyclipso/typdf - 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. tyclipso/typdf

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

tyclipso/typdf
==============

A PHP library for filling forms in PDF documents

1.0.0(3mo ago)04↓86.4%MITPHPPHP &gt;=8.1

Since Apr 2Pushed 3mo agoCompare

[ Source](https://github.com/tyclipso/typdf)[ Packagist](https://packagist.org/packages/tyclipso/typdf)[ RSS](/packages/tyclipso-typdf/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

typdf
=====

[](#typdf)

typdf is a PHP library for filling forms in PDF documents.

**Capabilities**

- Supports setting the field values for
    - text fields
    - radio buttons
    - checkboxes
    - selects
- Can show all available fields in the document
- Can save the PDF as file or return the binary content
- Supports PDFs with Flate-encoded streams

**Limits**

- Encrypted PDFs are not supported
- typdf is only intended for form filling, not for other PDF operations

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

[](#installation)

The easiest way to use this library is via composer.

`composer require tyclipso/typdf`

Usage
-----

[](#usage)

```
$doc = new \Typdf\PdfDocument('/path/to/form.pdf');

// Inspect fields
foreach ($doc->getFields() as $name => $field) {
  echo $field->name.' ('.$field->type->value.'): '.($field->value ?? 'empty')."\n";
}

// Fill fields
$doc->setFieldValue('firstName', 'Jane');    // text
$doc->setFieldValue('agreeToTerms', true);   // checkbox
$doc->setFieldValue('gender', 'female');     // radio button
$doc->setFieldValue('country', 'DE');        // select/combo

// Save
$doc->save('/path/to/filled.pdf');
// or: $bytes = $doc->getContent();

```

Contact
-------

[](#contact)

- Website:
- Github:

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance82

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

91d ago

### Community

Maintainers

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

---

Top Contributors

[![konrad321](https://avatars.githubusercontent.com/u/982987?v=4)](https://github.com/konrad321 "konrad321 (3 commits)")

### Embed Badge

![Health badge](/badges/tyclipso-typdf/health.svg)

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

###  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)
