PHPackages                             dexamped/kohana-wkhtml2pdf - 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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. dexamped/kohana-wkhtml2pdf

ActiveKohana-module[PDF &amp; Document Generation](/categories/documents)

dexamped/kohana-wkhtml2pdf
==========================

Kohana wrapper for wkhtml2pdf

03.9k1PHP

Since Jul 16Pushed 10y ago1 watchersCompare

[ Source](https://github.com/dexamped/kohana-wkhtml2pdf)[ Packagist](https://packagist.org/packages/dexamped/kohana-wkhtml2pdf)[ RSS](/packages/dexamped-kohana-wkhtml2pdf/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

kohana-wkhtml2pdf
=================

[](#kohana-wkhtml2pdf)

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

[](#installation)

- Composer install: `composer require dexamped/kohana-wkhtml2pdf`
- Download and make the wkhtml2pdf binary -
- Copy binary to MODPATH/kohana-wkhtml2pdf/vendor/bin directory
- Load module in bootstrap

```
Kohana::modules(array(
	// ...
	'wkhtml2pdf' => MODPATH.'kohana-wkhtml2pdf', // PDF Generator
	// ...
));
```

Usage
-----

[](#usage)

```
/**
 * Generate and return PDF inline
 */
public function action_index()
{
	// HTML view to convert to PDF
	$view = View::factory('pdf/document');

	// Generate, return and delete file
	$this->response->send_file(WKHTML2PDF::pdf($view->render()), 'document.pdf', array('delete' => TRUE));
}
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/21d87441d835742dbe30ca8661be16e3fdcf634496642197eb054b1e6c942027?d=identicon)[dexamped](/maintainers/dexamped)

---

Top Contributors

[![dexamped](https://avatars.githubusercontent.com/u/4725476?v=4)](https://github.com/dexamped "dexamped (6 commits)")

### Embed Badge

![Health badge](/badges/dexamped-kohana-wkhtml2pdf/health.svg)

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

###  Alternatives

[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.2k57.6M131](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)[setasign/tfpdf

This class is a modified version of FPDF that adds UTF-8 support. The latest version is based on FPDF 1.85.

426.1M30](/packages/setasign-tfpdf)[aspera/xlsx-reader

Spreadsheet reader library for XLSX files

52742.2k5](/packages/aspera-xlsx-reader)

PHPackages © 2026

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