Single-file PHP documentation generator. No dependencies. No installation. Just upload and generate.
Choose your preferred download method
Download the latest version with default settings. Perfect for quick start and testing.
Configure your generator before download. Set directories, language, and authentication.
Star, fork, or clone the repository. Contribute to the project and stay updated with the latest changes.
Everything you need to know
$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.
// 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.
No installation required
Pure PHP solution
6 languages supported
Try it before you download
Free and open source
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.
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:
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