PHPackages                             royfee/feepdf - 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. royfee/feepdf

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

royfee/feepdf
=============

3.3(2y ago)136PHP

Since Apr 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/royfee/feepdf)[ Packagist](https://packagist.org/packages/royfee/feepdf)[ RSS](/packages/royfee-feepdf/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (7)Used By (0)

feepdf
======

[](#feepdf)

基于 setasign/fpdi库，增加了中文支持

- 创建pdf，并输出

```
$pdf = new \royfee\feepdf\Fpdf;
$pdf->AddGBFont('simhei');
$pdf->AddPage();
$pdf->SetFont('simhei', '', 13);
$pdf->MultiCell(180,10,iconv("utf-8","gbk","多行会自动换行"));

$pdf->Cell(40,10,iconv("utf-8","gbk","单元格一"));
$pdf->Ln();
$pdf->Cell(40,10,iconv("utf-8","gbk","单元格二"));
$pdf->Ln();

//Cell方法最后一个参数表示是否显示边框
$pdf->Cell(60,10,iconv("utf-8","gbk","姓名"),1);
$pdf->Cell(60,10,iconv("utf-8","gbk","性别"),1);
$pdf->Ln();
$pdf->Cell(60,10,iconv("utf-8","gbk","张三"),1);
$pdf->Cell(60,10,iconv("utf-8","gbk","男"),1);
$pdf->Ln();
$pdf->Cell(60,10,iconv("utf-8","gbk","李四"),1);
$pdf->Cell(60,10,iconv("utf-8","gbk","女"),1);
$pdf->Ln();

$pdf->Output();//直接输出，即在浏览器显示
//$pdf->Output('example.pdf','F');//保存为example.pdf文件
```

- 合并pdf

```
$pdi  = new \royfee\feepdf\Fpdi;
$page_count =  $pdi->setSourceFile('133.pdf');
//读取pdf中的每一页
for( $i = 1 ; $i importPage($i);
    $size = $pdi->getTemplateSize($pageId);
    $pdi->AddPage($size['orientation'],$size);
    $pdi->useTemplate($pageId);
    $pdi->SetFont('Helvetica');
    $pdi->SetXY(5,5);
}
$pdi->Output();
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Every ~69 days

Recently: every ~29 days

Total

6

Last Release

771d ago

Major Versions

1.0 → 2.02023-12-13

2.0 → 3.02023-12-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/307712905420580e4db4c492c8ca3b3c464346a375e1fbd280f5e6368149f5c0?d=identicon)[royfee](/maintainers/royfee)

---

Top Contributors

[![royfee](https://avatars.githubusercontent.com/u/49356467?v=4)](https://github.com/royfee "royfee (6 commits)")

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/royfee-feepdf/health.svg)

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

###  Alternatives

[mpdf/mpdf

PHP library generating PDF files from UTF-8 encoded HTML

4.7k77.1M493](/packages/mpdf-mpdf)[webklex/laravel-pdfmerger

Generic PDF merger for Laravel

1422.6M2](/packages/webklex-laravel-pdfmerger)[jurosh/pdf-merge

PHP PDF Merger

1522.2M5](/packages/jurosh-pdf-merge)[creagia/laravel-sign-pad

Laravel package for of E-Signature with Signature Pad and Digital Certified Sign with TCPDF

54097.2k](/packages/creagia-laravel-sign-pad)[setasign/fpdi-protection

A FPDI compatible version of the FPDF\_Protection script.

324.3M2](/packages/setasign-fpdi-protection)[binarystash/pdf-watermarker

Watermark or stamp PDF documents

8260.6k](/packages/binarystash-pdf-watermarker)

PHPackages © 2026

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