PHPackages                             evert/phpdoc-md - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. evert/phpdoc-md

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

evert/phpdoc-md
===============

PHP documentation generator, with markdown output

0.2.0(10y ago)169170.9k↓34%44[3 PRs](https://github.com/evert/phpdoc-md/pulls)20MITPHPPHP &gt;=5.3.1

Since Nov 2Pushed 6y ago9 watchersCompare

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

READMEChangelogDependencies (3)Versions (11)Used By (20)

PHPDocumentor MarkDown export
=============================

[](#phpdocumentor-markdown-export)

This is a script that can generate markdown (.md) files for your API documentation.

It is tailored for projects using PSR-0, PSR-1, PSR-2, PSR-4 and namespaces. The project was primarily developed for [sabre/dav](https://sabre.io/), but it should work for other codebases as well.

It only documents classes and interfaces.

The code is ugly, it was intended as a one-off, and I was in a hurry.. so the codebase may not be up to your standards. (it certainly isn't up to mine).

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

[](#installation)

This project assumes you have composer installed. Simply add:

```
"require-dev" : {

    "evert/phpdoc-md" : "~0.2.0"

}

```

To your composer.json, and then you can simply install with:

```
composer install

```

Usage
-----

[](#usage)

First ensure that phpdocumentor 2 is installed somewhere, after, you must generate a file called `structure.xml`.

The easiest is to create a temporary directory, for example named `docs/`.

```
# phpdoc command
phpdoc  -d [project path] -t docs/ --template="xml"

# Next, run phpdocmd:
phpdocmd docs/structure.xml [outputdir]

```

Options
-------

[](#options)

```
--lt [template]
    This specifies the 'template' for links we're generating. By default
    this is "%c.md".

--index [filename]
    This specifies the 'filename' for API Index markdown file we're generating.
    By default this is "ApiIndex.md".

```

This should generate all the .md files. I'm excited to hear your feedback.

Cheers, [Evert](https://twitter.com/evertp)

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity50

Moderate usage in the ecosystem

Community37

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.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 ~133 days

Recently: every ~297 days

Total

10

Last Release

3749d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ec28c32d012f276f61b0b58cabe3c8f674166732d9b20eeddc3f9807857ba10?d=identicon)[evert](/maintainers/evert)

---

Top Contributors

[![evert](https://avatars.githubusercontent.com/u/178960?v=4)](https://github.com/evert "evert (47 commits)")[![ericdowell](https://avatars.githubusercontent.com/u/525506?v=4)](https://github.com/ericdowell "ericdowell (3 commits)")[![assertchris](https://avatars.githubusercontent.com/u/200609?v=4)](https://github.com/assertchris "assertchris (1 commits)")[![jelmersnoeck](https://avatars.githubusercontent.com/u/815655?v=4)](https://github.com/jelmersnoeck "jelmersnoeck (1 commits)")[![mikecbrant](https://avatars.githubusercontent.com/u/2119035?v=4)](https://github.com/mikecbrant "mikecbrant (1 commits)")

---

Tags

phpphpdocmarkdown

### Embed Badge

![Health badge](/badges/evert-phpdoc-md/health.svg)

```
[![Health](https://phpackages.com/badges/evert-phpdoc-md/health.svg)](https://phpackages.com/packages/evert-phpdoc-md)
```

###  Alternatives

[nelson6e65/phpdoc-vuepress

Template for generating your PHP API documentation in a pretty VuePress format.

224.5k2](/packages/nelson6e65-phpdoc-vuepress)[dudo1985/wpdocgen

Documentation Generator for WordPress.

2327.6k](/packages/dudo1985-wpdocgen)

PHPackages © 2026

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