PHPackages                             wesnick/fdf-utility - 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. wesnick/fdf-utility

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

wesnick/fdf-utility
===================

FDF File Utility for PDF Forms

v1.0.2(10mo ago)1029.3k↓43.8%31MITPHPPHP ^8.1CI passing

Since Feb 22Pushed 10mo ago4 watchersCompare

[ Source](https://github.com/wesnick/fdf-utility)[ Packagist](https://packagist.org/packages/wesnick/fdf-utility)[ RSS](/packages/wesnick-fdf-utility/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (15)Used By (1)

FDF Utility Library for PHP
===========================

[](#fdf-utility-library-for-php)

[![CI](https://github.com/wesnick/fdf-utility/actions/workflows/ci.yaml/badge.svg)](https://github.com/wesnick/fdf-utility/actions/workflows/ci.yaml)[![Coding Standards](https://github.com/wesnick/fdf-utility/actions/workflows/coding-standards.yaml/badge.svg)](https://github.com/wesnick/fdf-utility/actions/workflows/coding-standards.yaml)[![Static Analysis](https://github.com/wesnick/fdf-utility/actions/workflows/static-analysis.yaml/badge.svg)](https://github.com/wesnick/fdf-utility/actions/workflows/static-analysis.yaml)

This library produces FDF files for PDF Forms.

Left to finish

- Add additional validation and tests for invalid configurations.
- Implement signature field support.

Console Usage
-------------

[](#console-usage)

- Generate CSV Export from PDF

```
bin/fdf wesnick:fdf:csv-export /path/to/my/pdf.pdf path/to/my/csv/csv --pdftk=/path/to/pdftk
```

- Generate Example Filled PDF

```
bin/fdf wesnick:fdf:example-pdf /path/to/my/emtpy-pdf.pdf path/to/my/filled-pdf.pdf --pdftk=/path/to/pdftk
```

You can also use the library's components directly. The class `PdfForm` is a useful reference point.

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

[](#installation)

Use composer.

```
composer require wesnick/fdf-utility
```

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Symfony Process (^6.4 or 7.2.\*)

Tip

For PHP versions between 7.1 and 8.0 use the [release v0.6.0](https://github.com/wesnick/fdf-utility/releases/tag/v0.6.0)

Tip

For PHP versions lower than 7.1 use the [release v0.5.0](https://github.com/wesnick/fdf-utility/releases/tag/v0.5.0)

Tip

For Symfony versions between &gt;=3.3 and &lt;4.4 use the [release v0.5.0](https://github.com/wesnick/fdf-utility/releases/tag/v0.5.0)

Tip

For Symfony versions between &gt;=2.3 and &lt;3.3 use the [release v0.4.3](https://github.com/wesnick/fdf-utility/releases/tag/v0.4.3)

Acknowledgements
----------------

[](#acknowledgements)

Much of the code for creating FDF files is based on Sid Steward's PDF work -- The test pdf form is borrowed from active\_pdftk, as well as some ideas about how to handle pdftk field dumps.

Contributing
------------

[](#contributing)

Fork and issue a Pull Request.

Running the Tests
-----------------

[](#running-the-tests)

```
./vendor/bin/phpunit
```

License
-------

[](#license)

Released under the MIT License. See the bundled LICENSE file for details.

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance53

Moderate activity, may be stable

Popularity34

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 57.8% 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 ~318 days

Recently: every ~418 days

Total

14

Last Release

328d ago

Major Versions

v0.6.0 → v1.0.02025-05-13

PHP version history (5 changes)0.1.0PHP &gt;=5.3.1

v0.4.3PHP &gt;=5.4

v0.5.0PHP ^5.5.9|&gt;=7.0.8

v0.6.0PHP &gt;=7.1

v1.0.0PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/519946?v=4)[Wesley Nichols](/maintainers/wesnick)[@wesnick](https://github.com/wesnick)

---

Top Contributors

[![wesnick](https://avatars.githubusercontent.com/u/519946?v=4)](https://github.com/wesnick "wesnick (26 commits)")[![ixarlie](https://avatars.githubusercontent.com/u/1876040?v=4)](https://github.com/ixarlie "ixarlie (9 commits)")[![efacenda](https://avatars.githubusercontent.com/u/2729055?v=4)](https://github.com/efacenda "efacenda (6 commits)")[![raqMorita](https://avatars.githubusercontent.com/u/16985336?v=4)](https://github.com/raqMorita "raqMorita (3 commits)")[![slejnej](https://avatars.githubusercontent.com/u/7508599?v=4)](https://github.com/slejnej "slejnej (1 commits)")

---

Tags

pdfFormsfdf

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/wesnick-fdf-utility/health.svg)

```
[![Health](https://phpackages.com/badges/wesnick-fdf-utility/health.svg)](https://phpackages.com/packages/wesnick-fdf-utility)
```

###  Alternatives

[knplabs/knp-snappy

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

4.5k68.3M56](/packages/knplabs-knp-snappy)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[chrome-php/chrome

Instrument headless chrome/chromium instances from PHP

2.6k4.5M64](/packages/chrome-php-chrome)[tmw/fpdm

PDF form filling using FPDM Class written by FPDF author Olivier

129623.6k3](/packages/tmw-fpdm)[pontedilana/php-weasyprint

PHP library allowing PDF generation from an url or a html page. Wrapper for Kozea/WeasyPrint.

761.1M7](/packages/pontedilana-php-weasyprint)[mostafaznv/pdf-optimizer

PDF optimization tool for PHP and Laravel applications

170125.8k](/packages/mostafaznv-pdf-optimizer)

PHPackages © 2026

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