PHPackages                             tiitoo/tcpdfbundle - 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. tiitoo/tcpdfbundle

ActiveSymfony-bundle[PDF &amp; Document Generation](/categories/documents)

tiitoo/tcpdfbundle
==================

Provides TCPDF integration for Symfony

070PHP

Since Oct 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/TiiToo/tcpdfbundle)[ Packagist](https://packagist.org/packages/tiitoo/tcpdfbundle)[ RSS](/packages/tiitoo-tcpdfbundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

How to Install
==============

[](#how-to-install)

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

[](#installation)

### Using composer

[](#using-composer)

Add following lines to your `composer.json` file:

### Symfony 2.3.\*

[](#symfony-23)

```
"require": {
  ...
  "gonzakpo/tcpdfbundle": "dev-master"
}

```

Execute:

```
php composer.phar update "gonzakpo/tcpdfbundle"

```

Add it to the `AppKernel.php` class:

```
// ...
new Io\TcpdfBundle\IoTcpdfBundle(),

```

### No Using composer

[](#no-using-composer)

1. Download TCPDF library at and put it in vendor folder
2. Add this bundle to your vendor/ dir \* Vendor Mode Add the following lines in your deps file::

    \[IoTcpdfBundle\] git=git://github.com/ioalessio/IoTcpdfBundle.git target=/bundles/Io/TcpdfBundle

    Run the vendor script:

    ./bin/vendors install
3. Add the "Io" namespace to your autoloader:

    // app/autoload.php $loader-&gt;registerNamespaces(array( 'Io' =&gt; **DIR**.'/../vendor/bundles', // your other namespaces ));

    //in same file include tcpdf library require\_once **DIR**.'/../vendor/tcpdf/tcpdf.php';
4. Add the "Io" namespace to your kernel:

    // app/ApplicationKernel.php public function registerBundles() { return array( // ... new Io\\TcpdfBundle\\IoTcpdfBundle(), // ... ); }

HOW TO USE:
===========

[](#how-to-use)

```
  //in mybundle/controllers/myController.php

    class MyController extends Controller
    {
        /**
         * @Route("/mypage.pdf")
         */
        public function mypageAction()
        {
            $html = $this->renderView('MyBundle:MyController:mypage.pdf.twig', array());

            //io_tcpdf will returns Response object
            return $this->get('io_tcpdf')->quick_pdf($html);
        }
    }

 //in mybundle/Resources/views/myController.pdf.twig

      put here your html code

```

TODO
====

[](#todo)

- smart method for easier PDF generation and customization
- cache pdf generation
- @PDF('template.twig') annotation system

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

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://avatars.githubusercontent.com/u/4389101?v=4)[TiiToo](/maintainers/TiiToo)[@TiiToo](https://github.com/TiiToo)

---

Top Contributors

[![TiiToo](https://avatars.githubusercontent.com/u/4389101?v=4)](https://github.com/TiiToo "TiiToo (2 commits)")

### Embed Badge

![Health badge](/badges/tiitoo-tcpdfbundle/health.svg)

```
[![Health](https://phpackages.com/badges/tiitoo-tcpdfbundle/health.svg)](https://phpackages.com/packages/tiitoo-tcpdfbundle)
```

###  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)
