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

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

gonzakpo/tcpdfbundle
====================

Provides TCPDF integration for Symfony

v1.0(12y ago)03642LGPLPHPPHP &gt;=5.3.0

Since Jul 25Pushed 7y ago1 watchersCompare

[ Source](https://github.com/gonzaloalonsod/IoTcpdfBundle)[ Packagist](https://packagist.org/packages/gonzakpo/tcpdfbundle)[ RSS](/packages/gonzakpo-tcpdfbundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (2)Versions (3)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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69.2% 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

Unknown

Total

1

Last Release

4586d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ab7da460db4f61d98fb4c414cfbd87ca6134fe03dd4bcc764ac19a8164918f6?d=identicon)[gonzaloalonsod](/maintainers/gonzaloalonsod)

---

Top Contributors

[![gonzaloalonsod](https://avatars.githubusercontent.com/u/1031176?v=4)](https://github.com/gonzaloalonsod "gonzaloalonsod (9 commits)")[![ioalessio](https://avatars.githubusercontent.com/u/679382?v=4)](https://github.com/ioalessio "ioalessio (4 commits)")

---

Tags

pdfTCPDF

### Embed Badge

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

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

###  Alternatives

[tecnickcom/tcpdf

TCPDF is a PHP class for generating PDF documents and barcodes.

4.5k101.8M473](/packages/tecnickcom-tcpdf)[tecnickcom/tc-lib-pdf

PHP PDF Library

1.8k452.3k7](/packages/tecnickcom-tc-lib-pdf)[elibyy/tcpdf-laravel

tcpdf support for Laravel 6, 7, 8, 9, 10, 11

3542.7M5](/packages/elibyy-tcpdf-laravel)[qipsius/tcpdf-bundle

A bundle to easily integrate TCPDF into Symfony

22709.1k](/packages/qipsius-tcpdf-bundle)[maxxscho/laravel-tcpdf

A simple Laravel 4 service provider with some basic configuration for including the TCPDF library

8725.7k](/packages/maxxscho-laravel-tcpdf)[propa/tcpdi

TCPDI is a PHP class for importing PDF to use with TCPDF

231.1M1](/packages/propa-tcpdi)

PHPackages © 2026

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