PHPackages                             falgun/phantom-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. falgun/phantom-bundle

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

falgun/phantom-bundle
=====================

Generate pdf using phantomjs

268PHP

Since Feb 26Pushed 12y ago1 watchersCompare

[ Source](https://github.com/rajuniit/FalgunPhantomBundle)[ Packagist](https://packagist.org/packages/falgun/phantom-bundle)[ RSS](/packages/falgun-phantom-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

FalgunPhantomBundle
-------------------

[](#falgunphantombundle)

A symfony 2 bundle to generate pdf using phantomjs.

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

[](#installation)

---

##### Step 1: You need to download Phantomjs in your machine to use the bundle

[](#step-1-you-need-to-download-phantomjs-in-your-machine-to-use-the-bundle)

Install phantomjs 1.9.2 from this link

##### Step 2: Download FalgunPhantomBundle

[](#step-2-download-falgunphantombundle)

Add FalgunPhantomBundle in your composer.json as below:

```
"falgun/phantom-bundle": "dev-master"

```

Update/install with this command:

```
php composer.phar update "falgun/phantom-bundle"

```

##### Step 2: Enable the bundle

[](#step-2--enable-the-bundle)

Register the bundle

```
public function registerBundles()
{
    $bundles = array(
        ...
        new Falgun\Bundle\PhantomBundle\FalgunPhantomBundle(),
);
```

##### Step 3: Activate the main configs

[](#step-3--activate-the-main-configs)

```
# app/config/config.yml
falgun_phantom:
  config:
    format: 'A3'
    margin: '.5cm'
    zoom: 1
    orientation: 'portrait'
    rendering_time: 1000
    viewport_width: 800
    viewport_height: 800
    rendering_timeout: 90000
    phantomjs: '/usr/local/bin/phantomjs'

```

How to use ?
------------

[](#how-to-use-)

```
public function indexAction()
{
    $falgun_pdf = $this->get('falgun_pdf');
    $result = $falgun_pdf->to_pdf("http://www.google.com");
}
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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/253013?v=4)[Raju Mazumder](/maintainers/rajuniit)[@rajuniit](https://github.com/rajuniit)

---

Top Contributors

[![rajuniit](https://avatars.githubusercontent.com/u/253013?v=4)](https://github.com/rajuniit "rajuniit (6 commits)")

### Embed Badge

![Health badge](/badges/falgun-phantom-bundle/health.svg)

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

###  Alternatives

[tarfin-labs/easy-pdf

Makes pdf processing easy.

1719.9k](/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)
