upgestao/mpdf
Composer 安装命令:
composer require upgestao/mpdf
包简介
A PHP class to generate PDF files from HTML with Unicode/UTF-8 and CJK support
README 文档
README
Versao alterada da mpdf 6.1.3 por questoes de compatibilidae de sistema mPDF is a PHP class which generates PDF files from UTF-8 encoded HTML. It is based on FPDF and HTML2FPDF (see CREDITS), with a number of enhancements. mPDF was written by Ian Back and is released under the GNU GPL v2 licence.
Installation
Preferred installation method is via composer and its packagist package mpdf/mpdf.
Manual installation
-
Download the .zip release file and unzip it
-
Create a folder e.g. /mpdf on your server
-
Upload all of the files to the server, maintaining the folders as they are
-
Ensure that you have write permissions set (CHMOD 6xx or 7xx) for the following folders:
/ttfontdata/ - used to cache font data; improves performance a lot
/tmp/ - used for some images and ProgressBar
/graph_cache/ - if you are using JpGraph in conjunction with mPDF
To test the installation, point your browser to the basic example file:
[path_to_mpdf_folder]/mpdf/examples/example01_basic.php
If you wish to define a different folder for temporary files rather than /tmp/ see the note on Folder for temporary files in the section on Installation & Setup in the manual.
If you have problems, please read the section on troubleshooting in the manual.
Online manual
Online manual is available at https://mpdf.github.io/.
Unit Testing
Unit testing for mPDF is done using PHPUnit.
To get started, run composer install from the command line while in the mPDF root directory
(you'll need composer installed first).
To execute tests, run vendor/bin/phpunit from the command line while in the mPDF root directory.
Any assistance writing unit tests for mPDF is greatly appreciated. If you'd like to help, please
note that any PHP file located in the /tests/ directory will be autoloaded when unit testing.
upgestao/mpdf 适用场景与选型建议
upgestao/mpdf 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 07 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「pdf」 「utf-8」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 upgestao/mpdf 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 upgestao/mpdf 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 upgestao/mpdf 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
tfpdf
Removes invalid UTF-8 characters from the given text
Country Flag Emoji for PHP
A collection of PHP multi-byte string functions that are not present in the mb_string extension.
Provides TCPDF integration for Symfony
Alfabank REST API integration
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2022-07-21