PHPackages                             pdfapi/php-sdk - 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. pdfapi/php-sdk

AbandonedArchivedLibrary

pdfapi/php-sdk
==============

pdfapi.io enables HTML pages that can contain CSS and JavaScripts to generate beautiful PDF via API

v1.0.0(9y ago)01.8k2MITPHPPHP ^5.5|^7.0

Since Nov 5Pushed 9y ago3 watchersCompare

[ Source](https://github.com/pdfapi/php-sdk)[ Packagist](https://packagist.org/packages/pdfapi/php-sdk)[ Docs](https://github.com/pdfapi/php-sdk)[ RSS](/packages/pdfapi-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (2)

[![Build Status](https://camo.githubusercontent.com/596d92c93fa525d7b0693a699c8ab5585f4277135d8b6275e2cb25fdc8b7fe0d/68747470733a2f2f7472617669732d63692e6f72672f7064666170692f7068702d73646b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pdfapi/php-sdk)[![Coverage Status](https://camo.githubusercontent.com/b752be31dec9b16c0ae8d5e56785133d002f2a80a63364bec85c54906ee93603/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7064666170692f7068702d73646b2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/pdfapi/php-sdk?branch=master)

pdfapi.io SDK for PHP
=====================

[](#pdfapiio-sdk-for-php)

Installation
------------

[](#installation)

pdfapi.io PHP SDK can be installed with [Composer](https://getcomposer.org/). Run this command:

```
composer require pdfapi/php-sdk
```

Usage
-----

[](#usage)

Usage of pdfapi.io PHP SDK is very simple. The easyest way to get started is:

```
use PdfApi\PdfApi;

$template = setHtml($template);

$rawPdf = $pdfApi->generate();
```

Full example of the usage: Note: Be aware that header and footer are separate HTML documents (with styles and everything) that are copied to each page.

```
use PdfApi\PdfApi;
use PdfApi\Parameter\Enum\Orientation;
use PdfApi\Parameter\Enum\Size;

$template = save('/path/to/file.pdf');
```

For getting API KEY you need to register account at . Generating API KEY will take you 10 seconds. And it is free. Really.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3476d ago

### Community

Maintainers

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

---

Top Contributors

[![tobre6](https://avatars.githubusercontent.com/u/1629750?v=4)](https://github.com/tobre6 "tobre6 (19 commits)")

---

Tags

phpsdkpdfapi.io

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pdfapi-php-sdk/health.svg)

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

###  Alternatives

[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.3M14](/packages/xeroapi-xero-php-oauth2)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[zenditplatform/zendit-php-sdk

PHP client for Zendit API

1204.3k](/packages/zenditplatform-zendit-php-sdk)[kinde-oss/kinde-auth-php

Kinde PHP SDK for authentication

2369.5k3](/packages/kinde-oss-kinde-auth-php)

PHPackages © 2026

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