laurentmuller/fpdf2
最新稳定版本:3.2.2
Composer 安装命令:
composer require laurentmuller/fpdf2
包简介
FPDF 2 is a PHP class which allows to generate PDF files with pure PHP. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs.
README 文档
README
This repository is a clone of fpdf.org with typed variables, enumerations and PHP 8.2 dependencies.
PdfDocument is a PHP class, which allows generating PDF files with pure PHP.
F from FPDF2 stands for Free: you may use it for any kind of usage and
modify it to suit your needs.
Installation
If you're using Composer to manage dependencies, you can use:
composer require laurentmuller/fpdf2
Alternatively, you can add the requirement "laurentmuller/fpdf2":"^3.0" to
your composer.json file and run composer update. This could be useful when
the installation of FPDF2 is not compatible with some installed dependencies.
Anyway, the previous option is the preferred way, since the composer can pick
the best requirement constraint for you.
Basic Usage
use fpdf\Enums\PdfFontName; use fpdf\Enums\PdfFontStyle; use fpdf\PdfDocument; $pdf = new PdfDocument(); $pdf->addPage(); $pdf->setFont(PdfFontName::ARIAL, PdfFontStyle::BOLD, 16); $pdf->cell(40, 10, 'Hello World!'); $pdf->output();
See other examples in the dedicated documents.
Code Quality
Actions
统计信息
- 总下载量: 6.92k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-02-04