PHPackages                             lluiscamino/php-doc2pdf - 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. lluiscamino/php-doc2pdf

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

lluiscamino/php-doc2pdf
=======================

Create PDF formatted documentation for your PHP projects.

v1.0.0-alpha(6y ago)612[1 issues](https://github.com/lluiscamino/phpDoc2pdf/issues)MITPHP

Since Jun 21Pushed 6y ago2 watchersCompare

[ Source](https://github.com/lluiscamino/phpDoc2pdf)[ Packagist](https://packagist.org/packages/lluiscamino/php-doc2pdf)[ Docs](https://github.com/lluiscamino/phpDoc2pdf)[ RSS](/packages/lluiscamino-php-doc2pdf/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

phpDoc2pdf
==========

[](#phpdoc2pdf)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/78daaa16bdc2b1817c390b2d33cedf52960c8a2fa0f2e36e9e966bf467f12642/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c6c75697363616d696e6f2f706870446f63327064662f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/lluiscamino/phpDoc2pdf/?branch=master) [![Build Status](https://camo.githubusercontent.com/1854cea93f10d3a598c929ada04ab4c5f03a35d3ad066142b5d406d5929c0ebb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c6c75697363616d696e6f2f706870446f63327064662f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/lluiscamino/phpDoc2pdf/build-status/master)

Create PDF formatted documentation for your PHP projects.

phpDoc2pdf uses the [phpDocumentor/Reflection](https://github.com/phpDocumentor/Reflection) library to extract the classes, interfaces and traits from your project and generate a set of documentation similar to the one that [phpDocumentor2](https://github.com/phpDocumentor/phpDocumentor2) provides, but in PDF format.

You can see some examples on the [docs](/docs) folder.

Getting Started
---------------

[](#getting-started)

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

### Installing

[](#installing)

1. Download the PHAR file directly from [here](https://github.com/lluiscamino/phpDoc2pdf/releases).

### Usage

[](#usage)

Use the following command to generate the documentation:

```
php phpDoc2pdf.phar create
```

Replace `` with the PHP file or directory that you want to document and `` with the directory where the documentation will be saved.

Please note that the files you want to document have to be in UTF-8 format.

Built With
----------

[](#built-with)

- [phpDocumentor2/Reflection](https://github.com/phpDocumentor/Reflection)
- [Symfony/Console](https://github.com/symfony/console)
- [mpdf](https://github.com/mpdf/mpdf)
- [thephpleague/plates](https://github.com/thephpleague/plates)
- [erusev/parsedown](https://github.com/erusev/parsedown)
- [sebastianbergmann/phpunit](https://github.com/sebastianbergmann/phpunit)

Contributing
------------

[](#contributing)

All contributions are welcome, please see the To-do list below or suggest something. 🤗

To-do list
----------

[](#to-do-list)

- Add tests
- Add markdown support
- Add templates system
- Separate generated docs into different subdirectories
- Make installation and usage simpler
- Include phpDocBlock types on method arguments
- Add support for all type of file extensions.

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2522d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1823ce0140e68e52c146b8e78b36ffcfff49727e39cc95a1e8520d876aad6d24?d=identicon)[lluiscamino](/maintainers/lluiscamino)

---

Top Contributors

[![lluiscamino](https://avatars.githubusercontent.com/u/23014720?v=4)](https://github.com/lluiscamino "lluiscamino (21 commits)")

---

Tags

hacktoberfestpdfphpphpdocphpdoc-pdfphpdocumentorphpdocphpdoc2pdfpdf phpdocumentor

### Embed Badge

![Health badge](/badges/lluiscamino-php-doc2pdf/health.svg)

```
[![Health](https://phpackages.com/badges/lluiscamino-php-doc2pdf/health.svg)](https://phpackages.com/packages/lluiscamino-php-doc2pdf)
```

###  Alternatives

[phpdocumentor/phpdocumentor

Documentation Generator for PHP

4.4k3.1M878](/packages/phpdocumentor-phpdocumentor)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[themsaid/ibis

Markdown to PDF book builder

2.0k2.0k](/packages/themsaid-ibis)[drutiny/drutiny

This is a generic Drupal 7 and Drupal 8 site auditing and optional remediation tool.

132122.2k17](/packages/drutiny-drutiny)[pronamic/wp-documentor

Documentation Generator for WordPress.

6529.8k5](/packages/pronamic-wp-documentor)

PHPackages © 2026

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