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 2mo ago

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 37% 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

3429d 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

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