PHPackages                             tamdaz/doc2html - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tamdaz/doc2html

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

tamdaz/doc2html
===============

A tool that enables to convert PHP docs in HTML files.

0.2.0(1y ago)317MITPHP

Since Jul 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/tamdaz/doc2html)[ Packagist](https://packagist.org/packages/tamdaz/doc2html)[ RSS](/packages/tamdaz-doc2html/feed)WikiDiscussions main Synced yesterday

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

Warning

For the moment, this project is in the development phase. It is not yet completely finished.

doc2html
========

[](#doc2html)

[![Packagist License](https://camo.githubusercontent.com/b59a41f3a91c10901dc766b05964af40e8a5ad6e913e601f704fdfbac87a9505/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f74616d64617a2f646f633268746d6c)](https://camo.githubusercontent.com/b59a41f3a91c10901dc766b05964af40e8a5ad6e913e601f704fdfbac87a9505/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f74616d64617a2f646f633268746d6c)[![Packagist Version](https://camo.githubusercontent.com/39a5011a486de07c582ba922c3abf575500c8485ff9fca2e32709f151f356c82/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74616d64617a2f646f633268746d6c)](https://camo.githubusercontent.com/39a5011a486de07c582ba922c3abf575500c8485ff9fca2e32709f151f356c82/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74616d64617a2f646f633268746d6c)

doc2html is a tool that enables to convert PHP documentation in HTML files. This tool can be used for any PHP project (namely Symfony, Laravel, Slim, CakePHP...)

[![cover image](https://repository-images.githubusercontent.com/827879105/e2822103-440c-4fd3-ab1a-cc117473c3b4)](https://repository-images.githubusercontent.com/827879105/e2822103-440c-4fd3-ab1a-cc117473c3b4)

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

[](#installation)

```
composer require --dev tamdaz/doc2html
```

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

[](#configuration)

To generate a configuration, execute:

```
./vendor/bin/doc2html gen-config
```

```
return [
    // Path where the documentation will be saved.
    'output_dir' => __DIR__ . '/output',

    // For each action, indicate it to standard output (STDOUT).
    'verbose' => true,

    // When these namespaces are excluded, they will not be taken into account by the
    // tool (except when exceptions apply to the "include_classes" parameter).
    'exclude_namespaces' => [
        // ...
    ],

    // When these namespaces are included, they will be taken into account by the
    // tool (except when exceptions apply to the "exclude_classes" parameter).
    'include_namespaces' => [
        // ...
    ],

    // Exclude classes to avoid generate documentation, even though in the included namespace.
    'exclude_classes' => [
        // ...
    ],

    // Classes to include to generate documentation.
    // INFO: If the specified class is in the excluded namespace, it will still be taken
    // into account in the classmap.
    'include_classes' => [
        // ...
    ],
];
```

Before generating the documentation, it is necessary to target the different directories because it allows to register your classes in the classmap.

```
"autoload": {
    "classmap": [
        "examples/", "src/"
    ]
},
```

```
composer dump-autoload
```

For information, this library uses the classmap of Composer to allow you to choose those you do not want to generate documentation.

After that, you can generate it by executing:

```
./vendor/bin/doc2html generate-doc
```

Tip

You can create an alias for this command and save it in `~/.bashrc` file.

```
export doc2html="./vendor/bin/doc2html"
```

Contributors
------------

[](#contributors)

Any contributions are welcome.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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

Every ~4 days

Total

6

Last Release

700d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/120991635?v=4)[Zohir Tamda](/maintainers/tamdaz)[@tamdaz](https://github.com/tamdaz)

---

Top Contributors

[![tamdaz](https://avatars.githubusercontent.com/u/120991635?v=4)](https://github.com/tamdaz "tamdaz (80 commits)")

---

Tags

doc2htmldocgendocgeneratorphpdocphpdocumentorphpdocdevgenerator

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tamdaz-doc2html/health.svg)

```
[![Health](https://phpackages.com/badges/tamdaz-doc2html/health.svg)](https://phpackages.com/packages/tamdaz-doc2html)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k132.8M891](/packages/barryvdh-laravel-ide-helper)[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k118.7M719](/packages/symfony-maker-bundle)[phpdocumentor/reflection-common

Common reflection classes used by phpdocumentor to reflect the code structure

9.1k736.5M37](/packages/phpdocumentor-reflection-common)[phalcon/zephir

Zephir is a compiled high level language aimed to the creation of C-extensions for PHP

3.4k450.6k20](/packages/phalcon-zephir)[simplesoftwareio/simple-qrcode

Simple QrCode is a QR code generator made for Laravel.

2.9k30.5M113](/packages/simplesoftwareio-simple-qrcode)[deptrac/deptrac

Deptrac is a static code analysis tool that helps to enforce rules for dependencies between software layers.

3.0k8.8M118](/packages/deptrac-deptrac)

PHPackages © 2026

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