phpDocGenerator

Single-file PHP documentation generator. No dependencies. No installation. Just upload and generate.

1 File
0 Dependencies
10 Languages
Simplicity

Download

Choose your preferred download method

Quick Download

Download the latest version with default settings. Perfect for quick start and testing.

Direct Download

Custom Settings

Configure your generator before download. Set directories, language, and authentication.

Get from GitHub

Star, fork, or clone the repository. Contribute to the project and stay updated with the latest changes.

View on GitHub

Documentation

Everything you need to know

Installation

$settings = [
  'directories' => ['./src'],
  'output_dir' => 'output',
  'language' => 'en',
];

No complex setup required. Simply upload the generator.php file to your web server, configure your project directories, and you're ready to generate beautiful documentation in seconds.

Configuration

// 1. Upload generator.php to your server
// 2. Configure directories in $settings
// 3. Open in browser
// 4. Done! View output/index.html

All settings are stored in a single configuration array at the top of the file. Customize directories to scan, output location, excluded folders, language preferences, and optional HTTP authentication—all in one place.

Key Features

Single File

No installation required

Zero Dependencies

Pure PHP solution

Multi-Language

6 languages supported

Live Demo

Try it before you download

Run Generator

Experience the documentation generator live. Upload your PHP files and watch as phpdg analyzes your code structure, extracts DocBlocks, and creates a fully navigable HTML documentation site.

Launch Generator

View Documentation

Browse through a complete documentation example generated from a real PHP project. Explore the interactive tree structure, searchable functions, and beautifully formatted class documentation.

View Output

License

Free and open source

MIT License

phpdg is free and open-source software released under the MIT License. Use it for personal projects, commercial applications, or modify it to suit your needs. No restrictions, no attribution required—just create great documentation.

Additional info

Used Cookies and Local Storage

Our website uses only essential cookies that are necessary for the proper functioning of the site. Specifically, these are:

* PHPSESSID – a technical cookie created by the server that serves to maintain an active user session. Without it, the basic functions of the website would not be possible.
* ang – a cookie that stores information about the selected language, so you don't have to set the language again on your next visit.

In addition to cookies, we also use local storage to save user preferences, specifically:

* phpdg_lang – selected interface language,
* phpdg-theme – preferred color theme (e.g. light / dark).

This data serves exclusively to customize the website display according to your preferences. It does not contain any personal or identifiable information and is not provided to third parties.

Enjoying phpdg? Consider supporting the project!

Your support helps keep phpdg free and actively maintained. Thank you! 🙏

phpdg is released under the MIT License.

You are free to:

  • Use it commercially
  • Modify the source code
  • Distribute it
  • Use it privately

Attribution is appreciated but not required. See LICENSE for full details.

Have questions, suggestions, or found a bug?

Response time: Usually within 24-48 hours