Search by

beastbytes / cod-php

BeastBytes

PHP API document generator that uses PHP Reflection to analyse the code.

Package info

github.com/beastbytes/cod-php

pkg:composer/beastbytes/cod-php

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

V1.1.0 2026-09-23 13:01 UTC

This package is auto-updated.

Last update: 2026-09-23 13:04:54 UTC


README

A Reflection based PHP API Documentation Generator

logo

CodPhp is an API document generator for PHP that uses Reflection (hence the name) to analyse files in a given namespace. It uses a Writer, templates, and a template renderer to generate the documentation in any desired format; out-of-the-box, CodPhp generates documentation in Markdown suitable for use with VitePress.

Features

  • Reflection analysis of the namespace - CodPhp analyses all Classes, Enums, Interfaces, and Traits, and the Constants, Methods, and Properties in them.
  • PhpDoc docBlock parsing - CodPhp parses docBlocks to extract element summary and/or description, and some tags.
  • Inheritance - CodPhp shows inheritance for classes, interfaces, and traits, and class child-classes, interface implementation, and trait usage.
  • Cross-referencing - CodPhp generates links between elements in the namespace.
  • Type referencing - CodPhp generates links to PHP types and extension classes and exceptions, and namespace defined types.
  • Source code links - CodPhp optionally generates links to source code.
  • Error reporting - CodPhp collects and reports errors found in the documentation.
  • Flexible templating and output formating - CodPhp supports using a user defined template renderers, templates, and/or Writers, allowing documentation to be generated in any format. Out-of-the-box, CodPhp generates documentation in Markdown suitable for use with VitePress.

For licence information see the LICENCE file.

Documentation is at https://beastbytes.github.io/cod-php/