PHPackages                             swisnl/pdfcrowd-client - 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. swisnl/pdfcrowd-client

Abandoned → [pdfcrowd/pdfcrowd](/?search=pdfcrowd%2Fpdfcrowd)ArchivedLibrary[API Development](/categories/api)

swisnl/pdfcrowd-client
======================

A client for the pdfcrowd.com API. Includes a Laravel service provider.

312.9k1[1 issues](https://github.com/swisnl/pdfcrowd-client/issues)PHP

Since Sep 14Pushed 4y ago2 watchersCompare

[ Source](https://github.com/swisnl/pdfcrowd-client)[ Packagist](https://packagist.org/packages/swisnl/pdfcrowd-client)[ RSS](/packages/swisnl-pdfcrowd-client/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Pdfcrowd API client
===================

[](#pdfcrowd-api-client)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3e6e2034d04c6eb839909a3688158bb52f57d5a2f285f0cd476144c7507b4e74/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737769736e6c2f70646663726f77642d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/swisnl/pdfcrowd-client)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/d98f36e802b07cf180ec312232a5d05c6c5d95ed10dd170cbaaf1c972d18a9de/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f737769736e6c2f70646663726f77642d636c69656e742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/swisnl/pdfcrowd-client)[![Coverage Status](https://camo.githubusercontent.com/0f47388029bd6f5fc4bdb46c86634906a05d8bce10378101c5b502389a69a31d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f737769736e6c2f70646663726f77642d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/swisnl/pdfcrowd-client/code-structure)[![Quality Score](https://camo.githubusercontent.com/57d52983778b339177b4c0c02432ebe0bc41ffed8ffe1b49b9da5828aad7c0a4/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f737769736e6c2f70646663726f77642d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/swisnl/pdfcrowd-client)[![Total Downloads](https://camo.githubusercontent.com/42482638ffdaca108527010266a04d63bcfbf6013a67189fede71202a97f2e44/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f737769736e6c2f70646663726f77642d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/swisnl/pdfcrowd-client)

🚨 **THIS PACKAGE HAS BEEN ABANDONED** 🚨

We don't use this package anymore in our own projects and there is an official package with Composer support, so that's why we have chosen to abandon it. We suggest using the official [pdfcrowd/pdfcrowd](https://github.com/pdfcrowd/pdfcrowd-php) package instead. Feel free to fork our code and maintain your own copy.

This is a API client for pdfcrowd.com. It is based on the [pdfcrowd/pdfcrowd-php](https://github.com/pdfcrowd/pdfcrowd-php) project but adjusted for usage with Composer. It also includes a Laravel service provider and unit tests.

Work in progress
----------------

[](#work-in-progress)

This client is still under active development. What needs to be done:

- Improve docs: in what way does this package differ from the original class?
- Improve docs: add docblocks to all setters.
- Improve docs: try to generate docs for complete class?
- Tag a version and release!

Install
-------

[](#install)

> In order to make requests to the API you need to enable the PHP cURL library.

Via Composer

```
$ composer require swisnl/pdfcrowd-client
```

Laravel
-------

[](#laravel)

We provide a service provider so you can use dependency injection of the Pdfcrowd class within your Laravel projects. If you don't use [package auto-discovery](https://laravel-news.com/package-auto-discovery), add the ServiceProvider to the providers array in config/app.php

```
Swis\PdfcrowdClient\PdfcrowdServiceProvider::class,
```

Then, publish the config file using:

```
php artisan vendor:publish --provider="Swis\PdfcrowdClient\PdfcrowdServiceProvider"
```

Usage
-----

[](#usage)

```
# instantiate client, Laravel users can use dependency injection
$client = new Pdfcrowd('username', 'api_key');

# convert HTML to PDF and output
echo $client->convertHtml($someHtml);

# convert URI to PDF and output
echo $client->convertUri('https://google.com');

# convert to PDF and write to file
$client->setOutputDestination(fopen('path/to/output.pdf', 'w');
$client->convertHtml($someHtml);

# retrieve the amount of available tokens
$tokens = $client->availableTokens();

# retrieve the amount of tokens used by the previous conversion
$tokens = $client->getUsedTokens();
```

A complete reference by Pdfcrowd is available at .

Basic examples are available in [/examples](/examples).

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Barry van Veen](https://github.com/swisnl)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor1

Top contributor holds 80.6% 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://avatars.githubusercontent.com/u/8734305?v=4)[SWIS](/maintainers/swisnl)[@swisnl](https://github.com/swisnl)

---

Top Contributors

[![barryatswisnl](https://avatars.githubusercontent.com/u/18284224?v=4)](https://github.com/barryatswisnl "barryatswisnl (29 commits)")[![bbrala](https://avatars.githubusercontent.com/u/3294970?v=4)](https://github.com/bbrala "bbrala (4 commits)")[![JaZo](https://avatars.githubusercontent.com/u/3475007?v=4)](https://github.com/JaZo "JaZo (3 commits)")

### Embed Badge

![Health badge](/badges/swisnl-pdfcrowd-client/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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