PHPackages                             tanghao2018/tfpdf - 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. tanghao2018/tfpdf

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

tanghao2018/tfpdf
=================

PHP library to create hatted code

1.2.4(9y ago)016MITPHPPHP &gt;=5.3.0

Since Dec 21Pushed 9y ago1 watchersCompare

[ Source](https://github.com/rainbow2019s/tfpdf)[ Packagist](https://packagist.org/packages/tanghao2018/tfpdf)[ RSS](/packages/tanghao2018-tfpdf/feed)WikiDiscussions master Synced today

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

tfpdf
=====

[](#tfpdf)

PHP 生成PDF文件

只是简单的把tFPDF 1.2.4包装成composer规范

用法
==

[](#用法)

use tfpdf\\Pdf;

$pdfLibrary = new Pdf(); $pdfLibrary-&gt;AddPage();

$pdfLibrary-&gt;image('', 10,10,30,46,'JPG');

// Add a Unicode font (uses UTF-8) $pdfLibrary-&gt;AddFont('Yahei','','Monaco\_Yahei.ttf',true); $pdfLibrary-&gt;SetFont('Yahei','',8);

$pdfLibrary-&gt;Write(8, "中文测试"); $pdfLibrary-&gt;Output('abc.pdf','D');

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3478d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/tanghao2018-tfpdf/health.svg)

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

###  Alternatives

[42coders/document-templates

Document template management package.

19940.0k](/packages/42coders-document-templates)[qipsius/tcpdf-bundle

A bundle to easily integrate TCPDF into Symfony

23749.5k](/packages/qipsius-tcpdf-bundle)[macopedia/magmi2

Magento Mass Importer 'Magmi' for Magento 2

11615.7k](/packages/macopedia-magmi2)[tarfin-labs/easy-pdf

Makes pdf processing easy.

1719.4k](/packages/tarfin-labs-easy-pdf)[akeneo-labs/excel-connector-bundle

Akeneo PIM Excel connector bundle

166.4k](/packages/akeneo-labs-excel-connector-bundle)

PHPackages © 2026

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