PHPackages                             mohdarifansari/tcpdf-bundle - 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. mohdarifansari/tcpdf-bundle

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

mohdarifansari/tcpdf-bundle
===========================

Provides TCPDF integration for Symfony

09PHP

Since Sep 19Pushed 12y ago1 watchersCompare

[ Source](https://github.com/mohdarifansari/IoTcpdfBundle)[ Packagist](https://packagist.org/packages/mohdarifansari/tcpdf-bundle)[ RSS](/packages/mohdarifansari-tcpdf-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#how-to-install)

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

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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/f87f0901c06b29a69d498bc8407998b140698a8c81f4b38d73ec69ebd2d111e6?d=identicon)[mohdarifansari](/maintainers/mohdarifansari)

---

Top Contributors

[![mohdarifansari](https://avatars.githubusercontent.com/u/2233107?v=4)](https://github.com/mohdarifansari "mohdarifansari (8 commits)")[![ioalessio](https://avatars.githubusercontent.com/u/679382?v=4)](https://github.com/ioalessio "ioalessio (4 commits)")

### Embed Badge

![Health badge](/badges/mohdarifansari-tcpdf-bundle/health.svg)

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

###  Alternatives

[42coders/document-templates

Document template management package.

19940.0k](/packages/42coders-document-templates)[qipsius/tcpdf-bundle

A bundle to easily integrate TCPDF into Symfony

23749.5k](/packages/qipsius-tcpdf-bundle)[macopedia/magmi2

Magento Mass Importer 'Magmi' for Magento 2

11615.7k](/packages/macopedia-magmi2)[tarfin-labs/easy-pdf

Makes pdf processing easy.

1719.4k](/packages/tarfin-labs-easy-pdf)[akeneo-labs/excel-connector-bundle

Akeneo PIM Excel connector bundle

166.4k](/packages/akeneo-labs-excel-connector-bundle)

PHPackages © 2026

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