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 2w 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

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

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

[macopedia/magmi2

Magento Mass Importer 'Magmi' for Magento 2

11615.7k](/packages/macopedia-magmi2)[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)
