feryardiant / fpdf
符合PSR-0规范的、简洁易读的非官方FPDF库。
1.7.2
2015-02-11 20:42 UTC
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: 3.7.*
Suggests
- ext-gd: For Image Parser support
- ext-zlib: For Compression support
This package is auto-updated.
Last update: 2024-08-23 09:37:44 UTC
README
符合PSR-4规范的非官方FPDF库,代码简洁易读
这是1.7.2版本,有一些改动
- 库命名空间为
Fpdf
- 目录结构遵循PSR-4标准,以
src/Fpdf
为根目录 - 类构造函数重命名为
__construct
,而不是FPDF
-
FPDF_VERSION
现在是Fpdf\Fpdf::VERSION
- 错误时抛出
Fpdf\Exception
异常,而不是lib中的die()
- 重构所有方法为
camelCase
(这会破坏向下兼容性)。 - 重建文档和教程。
- 完成单元测试。
使用composer安装
该包作为feryardiant/fpdf
存在于Packagist仓库中。
$ composer require feryardiant/fpdf --prefer-dist
测试
phpunit -c tests/phpunit.xml
鸣谢
原作者: Olivier PLATHEY
FPDF版本 1.7