PHPackages                             patgod85/phpdoc2rst - 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. patgod85/phpdoc2rst

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

patgod85/phpdoc2rst
===================

PHPDoc to RST

0.0.22(8y ago)0401MITPHPPHP &gt;=5.3.2

Since Dec 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/patgod85/phpdoc2rst)[ Packagist](https://packagist.org/packages/patgod85/phpdoc2rst)[ Docs](https://github.com/patgod85/phpdoc2rst)[ RSS](/packages/patgod85-phpdoc2rst/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (13)Versions (12)Used By (0)

Phpdoc2rst
----------

[](#phpdoc2rst)

The tool for building of documentation for shared API in reStructuredText format

For main API entities

[![Preview](Resources/public/input.jpg)](Resources/public/input.jpg)

we can generate rst-files with data stored in PhpDoc annotations. Examples of results can be found [here](Resources/test/expected) .

Installation:

```
composer require patgod85/phpdoc2rst
```

The tool implemented as a bundle for Symfony 2 and provides 2 commands:

```
php app/console phpdoc2rst:process
```

The command generates rst-files for specified target (Controllers, Models of Exceptions)

**arguments:**

1. namespace - The namespace to process;
2. path - The path the namespace can be found in;

**options:**

- --output, -o - The path to output the ReST files;
- --title, -t - An alternate title for the top level namespace;
- --exclude, -x - Semicolon separated namespaces to ignore;
- --target - Which elements need to select. Default value 'properties';
- --groups - Allows to fetch only properties of required group. A string divided by commas. Default value '';
- --header - Set the weight of main header for target==properties. Available options "h1" and "h2". Default value is "h1"

```
php app/console phpdoc2rst:all
```

The command is a runner of several phpdoc2rst:process that specified in config.yml of the project

Example of config.yml section

```
patgod85_phpdoc2rst:
    errors_provider: my_bundle.errors
    tasks:
        email:
            subtasks:
                default:
                    target: 'properties'
                    namespace: 'MyBundle\Model'
                    input: '%kernel.root_dir%/../src/MyBundle/Model'
                    output: '%kernel.root_dir%/../src/MyBundle/Resources/views/model'
                    groups: Export,Create
                    header: h2
```

For "properties" mode the annotation `JMS\Serializer\Annotation\VirtualProperty` should be counted

\##To update the bundle:

1. Commit the changes
2. Add a tag with version number
3. Push
4. Run `composer require patgod85/phpdoc2rst:0.0.17` in the customer project

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92% 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 ~40 days

Recently: every ~78 days

Total

11

Last Release

3079d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3684701?v=4)[victor](/maintainers/patgod85)[@patgod85](https://github.com/patgod85)

---

Top Contributors

[![patgod85](https://avatars.githubusercontent.com/u/3684701?v=4)](https://github.com/patgod85 "patgod85 (23 commits)")[![Rossonero585](https://avatars.githubusercontent.com/u/13097880?v=4)](https://github.com/Rossonero585 "Rossonero585 (2 commits)")

---

Tags

phpdocdocumentationrst

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/patgod85-phpdoc2rst/health.svg)

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

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9417.2k56](/packages/open-dxp-opendxp)

PHPackages © 2026

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