PHPackages                             goetas/apache-fop - 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. goetas/apache-fop

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

goetas/apache-fop
=================

Symfony 2 / 3 Apache FOP Bundle

1.0.4(9y ago)814.6k↓50%9[1 PRs](https://github.com/goetas/apache-fop/pulls)1MITPHPPHP &gt;=5.3.2

Since Jul 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/goetas/apache-fop)[ Packagist](https://packagist.org/packages/goetas/apache-fop)[ Docs](https://github.com/goetas/apache-fop)[ RSS](/packages/goetas-apache-fop/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (1)

apache-fop-bundle
=================

[](#apache-fop-bundle)

Symfony2 [Apache FOP](http://xmlgraphics.apache.org/fop/) (XSL-FO) Bundle

[![Downloads](https://camo.githubusercontent.com/a1d190b90f19f692cd031fff8f30e0f437022d3f8879521872ef00613b750a8c/68747470733a2f2f706f7365722e707567782e6f72672f676f657461732f6170616368652d666f702f642f746f74616c2e706e67)](https://packagist.org/packages/goetas/apache-fop)[![Latest Stable Version](https://camo.githubusercontent.com/e18bb4f31b857e01a5c1bfc6854c8e1def7774091df78b74e9c451ef809b969d/68747470733a2f2f706f7365722e707567782e6f72672f676f657461732f6170616368652d666f702f76657273696f6e2e706e67)](https://packagist.org/packages/goetas/apache-fop)[![Latest Unstable Version](https://camo.githubusercontent.com/2d6d0a62ac6b84485e8bede4bc8ff8b8e1152b7e541e388210eb6d773cd50bab/68747470733a2f2f706f7365722e707567782e6f72672f676f657461732f6170616368652d666f702f762f756e737461626c652e706e67)](https://packagist.org/packages/goetas/apache-fop)[![Build Status](https://camo.githubusercontent.com/551fb02aea9b0dfe8e28ee07d0108615575449d0244d4dfa1ac5e8e07b62c3e8/68747470733a2f2f7472617669732d63692e6f72672f676f657461732f6170616368652d666f702e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/goetas/apache-fop)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/0a3ae50eaccc293204bb3909310fb490fcab053021c941182f702ddcc5ce0860/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f676f657461732f6170616368652d666f702f6261646765732f7175616c6974792d73636f72652e706e673f733d61353365346538333431353961323866616464616336306535623338626533336462373263336630)](https://scrutinizer-ci.com/g/goetas/apache-fop/)

Installing (composer)
---------------------

[](#installing-composer)

Add following lines on your **composer.json**

```
"requre":{
    "goetas/apache-fop": "1.0.*",
}

```

Configuration
-------------

[](#configuration)

Add following lines on your **config.yml**

```
goetas_apache_fop:
    executable: /install_path_to_apache_fop/fop
    config: ../../path_to_optional_config_xml

```

Add this to **AppKernel.php**

```
new Goetas\ApacheFopBundle\GoetasApacheFopBundle();

```

Add this to your **autoloader** (only if not using composer)

```
'Goetas\ApacheFopBundle' => $vendorDir . '/goetas/apache-fop/Goetas/GoetasApacheFop/lib/'

```

Usage
-----

[](#usage)

```
$service = $container->get("goetas.fop");
// convert FO to PDF or RTF
$service->convert("source.fo", "output.pdf", "application/pdf");
$service->convert(new FileInput("source.fo"), "output.pdf", "text/rtf");

//convert to PDF using XML and XSLT and with params
$service->convert("source.xml", "output.pdf", "application/pdf", "transform.xsl", array("paramName"=>"paramValue"));
//convert to PDF using XML and XSLT (reading xsl from string)
$service->convert("source.xml", "output.pdf", "application/pdf", new StringInput(" ... xsl string ..."));

//convert reading a FOP input from a string
$service->convert(new StringInput("source.fo"), "output.pdf", "application/pdf");

//convert reading a FOP input from a string, and get the result
$service->get(new StringInput("... fo data ..."), "application/pdf");

//convert reading a FOP input from a string, and output the result
$service->out(new StringInput("... fo data ..."), "application/pdf");

//convert reading a FO data from a file, and output the result (plus xsl)
$service->out(new FileInput("... fo data ..."), "text/rtf", "transform.xsl", array("paramName"=>"paramValue"));
```

[![Bitdeli Badge](https://camo.githubusercontent.com/f7dbdb7f80a3bbef9bbbe7d9838b46204a6b082938a89a297a449ff409fd1df6/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f676f657461732f6170616368652d666f702f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 75.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.

###  Release Activity

Cadence

Every ~258 days

Recently: every ~311 days

Total

6

Last Release

3395d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/776743?v=4)[Asmir Mustafic](/maintainers/goetas)[@goetas](https://github.com/goetas)

---

Top Contributors

[![goetas](https://avatars.githubusercontent.com/u/776743?v=4)](https://github.com/goetas "goetas (28 commits)")[![citadev](https://avatars.githubusercontent.com/u/15108906?v=4)](https://github.com/citadev "citadev (8 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

---

Tags

pdfrtfapachexslxsltdocumentsfop

### Embed Badge

![Health badge](/badges/goetas-apache-fop/health.svg)

```
[![Health](https://phpackages.com/badges/goetas-apache-fop/health.svg)](https://phpackages.com/packages/goetas-apache-fop)
```

###  Alternatives

[knplabs/knp-snappy

PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage.

4.5k68.3M56](/packages/knplabs-knp-snappy)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[chrome-php/chrome

Instrument headless chrome/chromium instances from PHP

2.6k4.5M64](/packages/chrome-php-chrome)[vaites/php-apache-tika

Apache Tika bindings for PHP: extracts text from documents and images (with OCR), metadata and more...

1171.5M2](/packages/vaites-php-apache-tika)[pontedilana/php-weasyprint

PHP library allowing PDF generation from an url or a html page. Wrapper for Kozea/WeasyPrint.

761.1M7](/packages/pontedilana-php-weasyprint)[mostafaznv/pdf-optimizer

PDF optimization tool for PHP and Laravel applications

170125.8k](/packages/mostafaznv-pdf-optimizer)

PHPackages © 2026

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