mattacosta / phd-common
Base types for generating PHP documentation.
dev-master
2021-01-13 06:59 UTC
Requires
- php/phd: @dev
This package is auto-updated.
Last update: 2024-04-13 14:39:59 UTC
README
Base types for generating PHP documentation.
Requirements
Installation
- Add
mattacosta/phd-common
to yourcomposer.json
file.
Getting started
-
Get a copy of the PHP manual.
git clone https://github.com/php/doc-base.git phpdoc/doc-base
git clone https://github.com/php/doc-en.git phpdoc/en
-
Generate a
.manual.xml
file.php phpdoc/doc-base/configure.php
-
Create a class that extends
Package_IDE_Base
and implements a rendering function. -
Create a script to setup and run the renderer (PEAR usage is unsupported).
You can copy the
scripts/export.php
file as a basic starting point.Usage:
php scripts/export.php phpdoc/doc-base/.manual.xml