PHPackages                             mzk10k/yii2-tcpdf - 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. mzk10k/yii2-tcpdf

ActiveYii2-extension[PDF &amp; Document Generation](/categories/documents)

mzk10k/yii2-tcpdf
=================

Yii2 TCPDF to load TCPDF libraries in a Yii2 site. Compatible with PHP 7

01.8kPHP

Since Nov 21Pushed 6y ago1 watchersCompare

[ Source](https://github.com/mzk10k/tcpdf-yii2)[ Packagist](https://packagist.org/packages/mzk10k/yii2-tcpdf)[ RSS](/packages/mzk10k-yii2-tcpdf/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 TCPDF
==========

[](#yii2-tcpdf)

Yii2 TCPDF to load TCPDF libraries in a Yii2 site

TCPDF TH
========

[](#tcpdf-th)

Version: 1.0.1

Release date: 2019-11-21

---

Install
=======

[](#install)

The preferred way to install this extension is through composer.

Either run

$ php composer.phar require mzk10k/yii2-tcpdf "dev-master"

or add

"mzk10k/yii2-tcpdf": "dev-master"

to the require section of your composer.json file.

Example
=======

[](#example)

```
use TCPDF;

$items = array(
    'header' => array(
        array('#', 'text', 15, 'C', ''),
        array('ID', 'text', 35, 'L', ''),
        array('Name', 'text', 55, 'L', ''),
        array('Price', 'number', 25, 'R', ' Baht.'),
        array('Amount', 'number', 25, 'R', ' items.'),
        array('Total', 'number', 25, 'R', ' Baht.'),
    ),
    'items' => array(
        array('1', 'PRO5900001', 'Yii 2 Framework Book', 250, 3, 750)
    )
);

(new TCPDF('P'))->table('product-table.pdf', $items);
```

[![yii2-tcpdf](img/2016-02-27_10-52-00.png)](img/2016-02-27_10-52-00.png)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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/1b76ba6b0c7472da3ff6a9a3fdc38c772e6925a79b9fbc1f034a24ff6921749d?d=identicon)[mzk10k](/maintainers/mzk10k)

---

Top Contributors

[![mzk10k](https://avatars.githubusercontent.com/u/10532649?v=4)](https://github.com/mzk10k "mzk10k (12 commits)")

### Embed Badge

![Health badge](/badges/mzk10k-yii2-tcpdf/health.svg)

```
[![Health](https://phpackages.com/badges/mzk10k-yii2-tcpdf/health.svg)](https://phpackages.com/packages/mzk10k-yii2-tcpdf)
```

###  Alternatives

[tarfin-labs/easy-pdf

Makes pdf processing easy.

1719.9k](/packages/tarfin-labs-easy-pdf)

PHPackages © 2026

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