PHPackages                             cointavia/html-to-pdf-converter - 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. cointavia/html-to-pdf-converter

ActiveLibrary[API Development](/categories/api)

cointavia/html-to-pdf-converter
===============================

Convert HTML code into PDF File

v1.0.0(4y ago)011MITPHPPHP ^7.3 || ^8.0

Since Oct 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/cointavia/html-to-pdf-converter)[ Packagist](https://packagist.org/packages/cointavia/html-to-pdf-converter)[ RSS](/packages/cointavia-html-to-pdf-converter/feed)WikiDiscussions main Synced 1mo ago

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

Convert any HTML content / code into PDF file very easy.
========================================================

[](#convert-any-html-content--code-into-pdf-file-very-easy)

Please visit [Cointavia PDF Generator](https://pdf.cointavia.com) for more information:
---------------------------------------------------------------------------------------

[](#please-visit-cointavia-pdf-generator-for-more-information)

- [Installation &amp; Configuration](https://pdf.cointavia.com/composer)
- [Basic Testing](https://pdf.cointavia.com/testing)
- [Using Swagger UI](https://pdf.cointavia.com/api/documentation)
- [Tips](https://cointavia.com)

Support
-------

[](#support)

- [Wiki](https://github.com/cointavia/html-to-pdf-converter/wiki/Cointavia-HTML-to-PDF-Convertor)
- [Extra Features](https://github.com/cointavia)

Getting Started
---------------

[](#getting-started)

### Installation

[](#installation)

The CointaviaPDF Service Provider can be installed via [Composer](http://getcomposer.org) by requiring the `cointavia/html-to-pdf-converter` package.

```
composer require cointavia/html-to-pdf-converter
```

Then run a composer update

```
composer update
```

To use the CointaviaPDF Service Provider, you must register the provider when bootstrapping your application.

⭐Purchase Api Token
-------------------

[](#purchase-api-token)

You can purchase api token through [pdf.cointavia.com](https://pdf.cointavia.com/)

### Configuration

[](#configuration)

To customize the configuration file, publish the package configuration using Artisan.

```
php artisan vendor:publish --provider="Cointavia\PDF\CointaviaPDFServiceProvider"
```

The settings can be found in the generated `config/cointavia-pdf.php` configuration file.

```
return [
    'auth_token' => '**********',
    'user_token' => '**********'
];
```

### Usage

[](#usage)

You can create a new CointaviaPDF instance and load a HTML string, file or view name. You can save it to a file, or stream (show in browser) or download.

Use the facade in Controller or Service:

```
use CointaviaPDF;
```

then

```
$fileName = "Sample File";
$htmlData = "HelloWorld";

$pdfFile = CointaviaPDF::generatePDF($fileName,$htmlData);
```

With successfull request Cointavia Api will return

```
{
    "status": 200,
    "success": {
        "filePath": "Path-To-Download-PDF"
    }
}
```

### Disclaimer

[](#disclaimer)

All rights reserved [@cointavia](https://pdf.cointavia.com/)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

1684d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/85141992?v=4)[Cointavia](/maintainers/cointavia)[@cointavia](https://github.com/cointavia)

---

Top Contributors

[![cointavia](https://avatars.githubusercontent.com/u/85141992?v=4)](https://github.com/cointavia "cointavia (8 commits)")

---

Tags

apilaravelpdfdocumentationhtmlethereumblockchainpdf converterHTML Conversion

### Embed Badge

![Health badge](/badges/cointavia-html-to-pdf-converter/health.svg)

```
[![Health](https://phpackages.com/badges/cointavia-html-to-pdf-converter/health.svg)](https://phpackages.com/packages/cointavia-html-to-pdf-converter)
```

###  Alternatives

[mpociot/laravel-apidoc-generator

Generate beautiful API documentation from your Laravel application

3.5k3.1M12](/packages/mpociot-laravel-apidoc-generator)

PHPackages © 2026

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