laurentmuller/fpdf2 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

laurentmuller/fpdf2

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.3 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":"^4.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.

Requirements

Branch PHP Version
master 8.3
3.x 8.2

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

SymfonyInsight Codacy PHP-Stan CodeFactor Codecov

Actions

CI StyleCI

统计信息

  • 总下载量: 10.34k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固