PHPackages                             wslibs/htmltopdf - 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. wslibs/htmltopdf

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

wslibs/htmltopdf
================

网页生成pdf

0.0.6(7y ago)1251MITPHPPHP &gt;=7.0

Since May 27Pushed 7y agoCompare

[ Source](https://github.com/songyangphp/WsHtmltoPdf)[ Packagist](https://packagist.org/packages/wslibs/htmltopdf)[ RSS](/packages/wslibs-htmltopdf/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (7)Used By (0)

\[toc\]

网页生成PDF服务：
----------

[](#网页生成pdf服务)

使用之前务必初始化sign(全局有效)

项目唯一码获取方式(去文始技术基础业务管理后台申请或联系管理员)

```
HtmlToPdf::setSign('您的项目唯一码');
```

### 一，同步生成PDF

[](#一同步生成pdf)

```
/**
* url 必须 要生成pdf的html链接地址
* type 可选[base64,url] 返回格式 默认为base64格式
*/

HtmlToPdf::syncCreatePdf("https://www.baidu.com/",8002,'url');
```

### 二，异步生成PDF

[](#二异步生成pdf)

```
/**
* url 必须 要生成pdf的html链接地址
* notify_url 必须 生成成功所请求的异步地址
* type 可选[base64,url] 返回格式 默认为base64格式
*/

HtmlToPdf::asynCreatePdf("https://www.baidu.com","http://zc.wszx.cc/songtest-pdf.html",'url');
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

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 ~0 days

Total

6

Last Release

2589d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d1eadf3df7c537739e6c0ac7087f1b39fe296df638e3015871cf0013ec9ba6ac?d=identicon)[songyangphp](/maintainers/songyangphp)

---

Top Contributors

[![songyangphp](https://avatars.githubusercontent.com/u/30816362?v=4)](https://github.com/songyangphp "songyangphp (13 commits)")

### Embed Badge

![Health badge](/badges/wslibs-htmltopdf/health.svg)

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

###  Alternatives

[42coders/document-templates

Document template management package.

19940.0k](/packages/42coders-document-templates)[qipsius/tcpdf-bundle

A bundle to easily integrate TCPDF into Symfony

23749.5k](/packages/qipsius-tcpdf-bundle)[macopedia/magmi2

Magento Mass Importer 'Magmi' for Magento 2

11615.7k](/packages/macopedia-magmi2)[tarfin-labs/easy-pdf

Makes pdf processing easy.

1719.4k](/packages/tarfin-labs-easy-pdf)[akeneo-labs/excel-connector-bundle

Akeneo PIM Excel connector bundle

166.4k](/packages/akeneo-labs-excel-connector-bundle)

PHPackages © 2026

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