PHPackages                             radweb/pdfcrowd-php - 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. radweb/pdfcrowd-php

Abandoned → [pdfcrowd/pdfcrowd](/?search=pdfcrowd%2Fpdfcrowd)ArchivedLibrary

radweb/pdfcrowd-php
===================

149.7k1PHP

Since Feb 28Pushed 6y ago4 watchersCompare

[ Source](https://github.com/Radweb/pdfcrowd-php)[ Packagist](https://packagist.org/packages/radweb/pdfcrowd-php)[ RSS](/packages/radweb-pdfcrowd-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (1)

Pdfcrowd HTML to PDF API client
===============================

[](#pdfcrowd-html-to-pdf-api-client)

**This package is no longer maintained, use this  instead.**

The Pdfcrowd API lets you easily create PDF from web pages or raw HTML code in your PHP applications.

To use the API, you need an account on [http://pdfcrowd.com](https://pdfcrowd.com), if you don't have one you can sign up [here](https://pdfcrowd.com/pricing/api/). This will give you a username and an API key.

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

[](#installation)

Copy [pdfcrowd.php](https://github.com/pdfcrowd/pdfcrowd-php/blob/master/pdfcrowd.php)to your source directory.

Example
-------

[](#example)

Server side PDF generation. This code converts a web page and sends the generated PDF to the browser (don't forget to use your `"username"`and `"apikey"`):

```
require 'pdfcrowd.php';

try
{
    // create an API client instance
    $client = new Pdfcrowd("username", "apikey");

    // convert a web page and store the generated PDF into a $pdf variable
    $pdf = $client->convertURI('http://example.com/');

    // set HTTP response headers
    header("Content-Type: application/pdf");
    header("Cache-Control: no-cache");
    header("Accept-Ranges: none");
    header("Content-Disposition: attachment; filename=\"created.pdf\"");

    // send the generated PDF
    echo $pdf;
}
catch(PdfcrowdException $e)
{
    echo "Pdfcrowd Error: " . $e->getMessage();
}

```

Other basic operations:

```
// convert an HTML string
$html = "In-memory HTML.";
$pdf = $client->convertHtml($html);

// convert an HTML file
$pdf = $client->convertFile('/path/to/local/file.html');

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/07cec9ce807e2c5175aca355a95f3a1d8244c898ee1fc62271b9163caebc2e91?d=identicon)[rknightuk](/maintainers/rknightuk)

![](https://www.gravatar.com/avatar/5e9e07f306735412e8567e5069420ae515f12ca15daef2bb81d5fb42e6b9450f?d=identicon)[SteveRad](/maintainers/SteveRad)

---

Top Contributors

[![pdfcrowd](https://avatars.githubusercontent.com/u/754485?v=4)](https://github.com/pdfcrowd "pdfcrowd (49 commits)")[![rknightuk](https://avatars.githubusercontent.com/u/948436?v=4)](https://github.com/rknightuk "rknightuk (2 commits)")

### Embed Badge

![Health badge](/badges/radweb-pdfcrowd-php/health.svg)

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

PHPackages © 2026

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