PHPackages                             htpdf/htpdf - 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. [API Development](/categories/api)
4. /
5. htpdf/htpdf

ActiveLibrary[API Development](/categories/api)

htpdf/htpdf
===========

PHP SDK for the HTPDF API — generate PDFs, screenshots, and more

1.0.0(2mo ago)00[1 PRs](https://github.com/HassTech-LLC/htpdf-php/pulls)MITPHPPHP &gt;=8.1CI passing

Since Apr 30Pushed 2mo agoCompare

[ Source](https://github.com/HassTech-LLC/htpdf-php)[ Packagist](https://packagist.org/packages/htpdf/htpdf)[ Docs](https://htpdf.net)[ RSS](/packages/htpdf-htpdf/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (1)Versions (4)Used By (0)

[![HTPDF PHP SDK — Official PHP SDK for HTPDF](./assets/banner.svg)](./assets/banner.svg)HTPDF PHP SDK
=============

[](#htpdf-php-sdk)

### Official PHP SDK for HTPDF

[](#official-php-sdk-for-htpdf)

*Official PHP SDK for HTPDF — first-class API client with production-grade error handling, retries, and streaming.*

[![License](https://camo.githubusercontent.com/ac049ef4e7a0b7196b09add6ac2d4f180e544c0ac779c2b2ac2fd2723a209579/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/ac049ef4e7a0b7196b09add6ac2d4f180e544c0ac779c2b2ac2fd2723a209579/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75653f7374796c653d666c61742d737175617265) [![Language](https://camo.githubusercontent.com/1c43682c1927c84b0373a6f6abd3b50b4a1120c6001356d3b246f7291d8487fa/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c616e67756167652d5048502d3331373843363f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/1c43682c1927c84b0373a6f6abd3b50b4a1120c6001356d3b246f7291d8487fa/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c616e67756167652d5048502d3331373843363f7374796c653d666c61742d737175617265) [![Framework](https://camo.githubusercontent.com/26aa3a7983d7981a4e38d4d591ae05d023d7c6daa305c731ac4f56457620892a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6672616d65776f726b2d436f6d706f7365722532307061636b6167652d3763336165643f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/26aa3a7983d7981a4e38d4d591ae05d023d7c6daa305c731ac4f56457620892a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6672616d65776f726b2d436f6d706f7365722532307061636b6167652d3763336165643f7374796c653d666c61742d737175617265) [![Status](https://camo.githubusercontent.com/8d0cfae5aabf2dace9725895c2df216a3d62463efdaf4871d3ea6923634b36e4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374617475732d537461626c652d3130623938313f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/8d0cfae5aabf2dace9725895c2df216a3d62463efdaf4871d3ea6923634b36e4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374617475732d537461626c652d3130623938313f7374796c653d666c61742d737175617265) [![CI](https://github.com/algasid7e/htpdf-php/actions/workflows/ci.yml/badge.svg)](https://github.com/algasid7e/htpdf-php/actions/workflows/ci.yml/badge.svg)

---

🌟 What &amp; Why
----------------

[](#-what--why)

Drop-in PHP client for the HTPDF API — typed methods, retries, and streaming downloads so you don't have to babysit Guzzle.

---

🚀 Features
----------

[](#-features)

- **First-class typed API client (PHP 8.1+)**
- **Production-grade retry and timeout policies**
- **Streaming downloads for large PDFs**
- **Multi-tenant authentication** — API keys, scoped tokens
- **Composer-installable, PSR-18 HTTP**

---

🛠️ Tech Stack
-------------

[](#️-tech-stack)

[![PHP 8.1+](https://camo.githubusercontent.com/22ebee4a0b2547d64086de291470f7c2fa32a0ae865e80fbae601e038bf35a85/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d504850253230382e312532422d3166323933373f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/22ebee4a0b2547d64086de291470f7c2fa32a0ae865e80fbae601e038bf35a85/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d504850253230382e312532422d3166323933373f7374796c653d666c61742d737175617265) [![Guzzle / PSR-18 HTTP](https://camo.githubusercontent.com/4887a0b78e642b2792ce2610a484636210f00b71e87beb8fcbd08e40c2f871be/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d47757a7a6c652532302f2532305053522d3138253230485454502d3166323933373f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/4887a0b78e642b2792ce2610a484636210f00b71e87beb8fcbd08e40c2f871be/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d47757a7a6c652532302f2532305053522d3138253230485454502d3166323933373f7374796c653d666c61742d737175617265) [![Composer](https://camo.githubusercontent.com/87eac8bffb3b2582fbd9b8d5c80414a4ff371d1934799bfa29963bb3913f3756/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d436f6d706f7365722d3166323933373f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/87eac8bffb3b2582fbd9b8d5c80414a4ff371d1934799bfa29963bb3913f3756/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d436f6d706f7365722d3166323933373f7374796c653d666c61742d737175617265)

---

📦 Installation
--------------

[](#-installation)

```
gh repo clone algasid7e/htpdf-php
cd htpdf-php
# follow project conventions for the toolchain
```

---

⚡ Quick Start
-------------

[](#-quick-start)

```
# After install
composer install
```

---

📚 Docs
------

[](#-docs)

See `examples/` and the project documentation at .

---

🎬 Demo
------

[](#-demo)

Live:

---

🤝 Contributing
--------------

[](#-contributing)

See [`CONTRIBUTING.md`](./CONTRIBUTING.md) and the [Code of Conduct](./CODE_OF_CONDUCT.md). Bug reports and feature requests via the [issue templates](./.github/ISSUE_TEMPLATE).

---

📜 License
---------

[](#-license)

MIT — see [`LICENSE`](./LICENSE).

---

**Built by [Hassan Algasid](https://hasstechapi.com) · Part of the [HassTech Suite](https://hasstechapi.com)**

[Website](https://hasstechapi.com) · [Contact](https://hasstechapi.com/contact) · [Security](./SECURITY.md)

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance87

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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

Unknown

Total

1

Last Release

65d ago

### Community

Maintainers

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

---

Top Contributors

[![HassTech-LLC](https://avatars.githubusercontent.com/u/123525009?v=4)](https://github.com/HassTech-LLC "HassTech-LLC (6 commits)")[![algasid7e](https://avatars.githubusercontent.com/u/123525009?v=4)](https://github.com/algasid7e "algasid7e (1 commits)")

---

Tags

api-clientcomposerhtpdfpdfphppsr-18sdkapipdfscreenshotdocumenthtml-to-pdf

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[resend/resend-php

Resend PHP library.

617.2M43](/packages/resend-resend-php)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

783.8k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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