Serve your PHP files in local and see the documentation.
Currently (only) support markdown.
Download or clone this project and place them outside or separate from your main project directory for the first time.
sample/
┖─ apidoc/
┖─ build/
┖─ markdown/
┖─ document.md
┖─ index.md
┖─ config.json
┖─ your-directory-contains-php-files/
┖─ apidoc.phar
Recomended for you to install Chrome extensions in your favorite web browser (based on chromium):
See: ./apidoc/config.json
Example:
{
"directory": "your-directory-contains-php-files",
"exclude": [
"bin"
],
"hideModifiers": {
"constant": ["private", "protected"],
"property": ["private", "protected"],
"method": ["private", "protected"]
},
"hideElements": ["source", "params"]
}
Serve files in local server:
$ php apidoc.phar serve
Generate documentation (markdown files):
$ php apidoc.phar build
Require files:
- index.md
- document.md
You can modify them with your own style. Support Twig-PHP syntax.
See directory ./apidoc/build/api/