Documentation generator for coding standard or static analysis rules

12.0.3 2023-09-24 09:37 UTC

This package is auto-updated.

Last update: 2023-09-24 09:37:47 UTC


Generate Documentation for you Sniffer, Fixer, Rector, PHPStan... any rule in nice styled Markdown syntax with PHP Code examples everyone will understand.

Downloads total


composer require symplify/rule-doc-generator --dev


To generate documentation from rules, use generate command with paths that contain the rules:

vendor/bin/rule-doc-generator generate src/Rules

The file will be generated to /docs/ by default. To change that, use --output-file:

vendor/bin/rule-doc-generator generate src/Rules --output-file docs/

Happy coding!

Report Issues

In case you are experiencing a bug or want to request a new feature head over to the Symplify monorepo issue tracker


The sources of this package are contained in the Symplify monorepo. We welcome contributions for this package on symplify/symplify.