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 4d 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 22% 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://www.gravatar.com/avatar/c3170b8bf2c7a5497515617b2bb02787a3998e86ad04a68f1c664e117b4bded5?d=identicon)[rajuniit](/maintainers/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

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