Ready to go
Download the bundled generator with default settings. Upload it to your PHP server and set your source folders.
Download generator ↓phpDG · PHP DOCUMENTATION GENERATOR
Turn your classes, methods and DocBlocks into browsable documentation. One PHP file is all you need.
Open source · MIT license · No Composer required
/**
* Find a user by their ID.
* @param int $id
* @return User|null
*/
public function find(int $id): ?Userfind(int $id): ?UserFind a user by their ID.
GET STARTED
Start with the defaults or prepare a generator for your project.
Download the bundled generator with default settings. Upload it to your PHP server and set your source folders.
Download generator ↓Choose source folders, output directory, languages and optional HTTP authentication before downloading.
Read the code, follow development or contribute an improvement to the project on GitHub.
View on GitHub ↗BUILT FOR EVERYDAY DEVELOPMENT
Upload the generator without a package manager or a build pipeline.
Explore classes, methods and functions in a hierarchical navigation tree.
Find the part of your codebase you need in generated documentation.
Keep descriptions, parameters and return values alongside your code.
Choose from ten documentation languages, including Slovak and Czech.
Configure HTTP users when preparing documentation for your team.
DOCUMENTATION
Place generator.php on your PHP server where it can read your project files.
Use the configurator or edit the settings array near the top of the downloaded file.
Open the generator in your browser, generate the documentation, then browse output/index.html.
$settings = [
'directories' => ['./src', './app'],
'output_dir' => 'output',
'exclude_dirs' => ['vendor', 'cache'],
'http_auth' => [],
'language' => 'en',
'available_languages' => ['en', 'sk', 'cs'],
];LIVE DEMO
Open the hosted phpDG demo to explore the generation interface.
Launch generator ↗Explore a real example with project navigation, classes and methods.
View documentation ↗FREE & OPEN SOURCE
phpDG is released under the MIT license, for personal and commercial projects.
Source & license ↗