Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.
/ apidoc-markdown Public archive

Generate your PHP file as Markdown documentation.

License

Notifications You must be signed in to change notification settings

enix-app/apidoc-markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EnixApp - Apidoc

Serve your PHP files in local and see the documentation.

Currently (only) support markdown.

Installation

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

Install Chrome Extension

Recomended for you to install Chrome extensions in your favorite web browser (based on chromium):

  1. Markdown Viewer
  2. JSON Viewer

Config File

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"]
}

Command Line Usage

Serve files in local server:

$ php apidoc.phar serve

Generate documentation (markdown files):

$ php apidoc.phar build

Templating (Markdown)

Require files:

  1. index.md
  2. document.md

You can modify them with your own style. Support Twig-PHP syntax.

Generated Documents

See directory ./apidoc/build/api/

About

Generate your PHP file as Markdown documentation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages