PHPackages                             phillipsdata/tcpdf\_wrapper - 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. phillipsdata/tcpdf\_wrapper

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

phillipsdata/tcpdf\_wrapper
===========================

TCPDF Table Library

1.1.0(9y ago)184[1 issues](https://github.com/phillipsdata/tcpdf_wrapper/issues)MITPHPPHP &gt;=5.3

Since Jun 13Pushed 9y ago4 watchersCompare

[ Source](https://github.com/phillipsdata/tcpdf_wrapper)[ Packagist](https://packagist.org/packages/phillipsdata/tcpdf_wrapper)[ RSS](/packages/phillipsdata-tcpdf-wrapper/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (8)Used By (0)

A wrapper for the TCPDF class that makes it easier to use it for building PDF tables.

Requirements
------------

[](#requirements)

TCPDF must already be loaded or autoloaded.

Install
-------

[](#install)

```
composer require phillipsdata/tcpdf_wrapper
```

Basic Usage
-----------

[](#basic-usage)

### Draw a table

[](#draw-a-table)

```
use PhillipsData\TcpdfWrapper\TcpdfWrapper;

// Instantiate an instance of the TcpdfWrapper
$oprientation = 'P';
$unit = 'mm';
$format = 'A4';
$unicade = true;
$encoding = 'UTF-8';
$diskcache = false;

$wrapper = new TcpdfWrapper($orientation, $unit, $format, $unicode, $encoding, $diskcache);

// Create a numerically-indexed array of row and column data
// where the key is the column name and the value is the value to display
$data = array(
    array(
        'name' => 'John Doe',
        'fav_color' => 'Blue'
    ),
    array(
        'name' => 'Jane Doe',
        'fav_color' => 'Red'
    )
);

// Define options for the table and the data columns
$options = array(
    'x_pos' => 44,
    'y_pos' => 246,
    'border' => 'RL',
    'height' => 16,
    'line_style' => array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter'),
    'font_size' => 12,
    'col' => array(
        'name' => array(
            'width' => 200,
            'align' => 'L'
        ),
        'fav_color' => array(
            'width' => 100,
            'align' => 'C'
        )
    )
);

$wrapper->drawTable($data, $options); // Draws the given data into the PDF
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Every ~1 days

Total

3

Last Release

3621d ago

### Community

Maintainers

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

---

Top Contributors

[![tysonphillips](https://avatars.githubusercontent.com/u/8607630?v=4)](https://github.com/tysonphillips "tysonphillips (16 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/phillipsdata-tcpdf-wrapper/health.svg)

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

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.3k](/packages/phpoffice-phpspreadsheet)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)[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.1k57.6M131](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)

PHPackages © 2026

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