• Stars
    star
    166
  • Rank 227,067 (Top 5 %)
  • Language
    PHP
  • License
    MIT License
  • Created almost 12 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

PHPDocumentor Markdown generator

PHPDocumentor MarkDown export

This is a script that can generate markdown (.md) files for your API documentation.

It is tailored for projects using PSR-0, PSR-1, PSR-2, PSR-4 and namespaces. The project was primarily developed for sabre/dav, but it should work for other codebases as well.

It only documents classes and interfaces.

The code is ugly, it was intended as a one-off, and I was in a hurry.. so the codebase may not be up to your standards. (it certainly isn't up to mine).

Installation

This project assumes you have composer installed. Simply add:

"require-dev" : {

    "evert/phpdoc-md" : "~0.2.0"

}

To your composer.json, and then you can simply install with:

composer install

Usage

First ensure that phpdocumentor 2 is installed somewhere, after, you must generate a file called structure.xml.

The easiest is to create a temporary directory, for example named docs/.

# phpdoc command
phpdoc  -d [project path] -t docs/ --template="xml"

# Next, run phpdocmd:
phpdocmd docs/structure.xml [outputdir]

Options

--lt [template]
    This specifies the 'template' for links we're generating. By default
    this is "%c.md".

--index [filename]
    This specifies the 'filename' for API Index markdown file we're generating.
    By default this is "ApiIndex.md".

This should generate all the .md files. I'm excited to hear your feedback.

Cheers, Evert

More Repositories

1

bigint-money

A Money class for high precision calculations using the ESnext bigint type.
TypeScript
67
star
2

csv123

CSV 1-2-3 - A CLI viewer for .csv files
Go
50
star
3

SabreAMF

SabreAMF is a AMF encoder/decoder writting in PHP. Supports AMF0 and 3.
PHP
42
star
4

slowdeath

A proof of concept low-traffic DOS script
Python
40
star
5

changelog-tool

A cli tool for manipulating changelogs
JavaScript
35
star
6

google-api-php-client

DO NOT USE THIS PACKAGE. ITS NOT MAINTAINED.
PHP
33
star
7

nodejs-chat

Chat application for NodeJS
JavaScript
18
star
8

phpunit-bin

Global PHPUnit cli script. Finds your project's phpunit and executes it.
PHP
18
star
9

jneko

JavaScript
17
star
10

evert.github.com

my home!
HTML
17
star
11

chatapp-skel

Chat application skeleton
JavaScript
13
star
12

promises-and-generators

Slides and resources for the "Promises and Generators" talk.
PHP
11
star
13

push-benchmark

Research on HTTP/2 performance and push
JavaScript
10
star
14

matrix-screensaver

Matrix screensaver for MS-DOS!
Pascal
8
star
15

PHPGopherServer

A simple inetd gopher server written in PHP
8
star
16

PHPIncludes

PHPIncludes allows you to easily create an 'includes' file for your application, traversing all directories for classes, interfaces and keeping dependencies in mind
PHP
7
star
17

vierisbier

JavaScript
5
star
18

sass-talk

Slides and sources for my talk "Making CSS fun again with Sass"
CSS
5
star
19

EventPHP

Event framework for PHP
PHP
4
star
20

calendarserver-extensions

A github repo for the caldav extensions from darwin calendarserver.
4
star
21

tonk

JavaScript
4
star
22

github-pages-aws-lambda-publish

Automatically re-publish github pages with AWS lambda
JavaScript
4
star
23

push-please

A proposal for a HTTP-client suggested push by link-relation
Makefile
4
star
24

meldpuntnederlanders.nl

JavaScript
3
star
25

communauto-car-notify

Get a desktop alert when a nearby car is available
JavaScript
3
star
26

sabre-cbor

The sabre/cbor library a PHP implementation for the Concise Binary Object Representation (rfc7049)
PHP
3
star
27

rfcsearch

easy RFC search provider
PHP
3
star
28

thing-router

A simple framework-neutral router package. Find things based on paths.
TypeScript
2
star
29

http-auth-webextension

A webextension to make HTTP authentication more user-friendly.
JavaScript
2
star
30

PHPJsonSchema

PHP implementation of the JSON-Schema specification
2
star
31

ckan-googlesheets-addon

HTML
1
star
32

hal-browser-demo

HAL Browser Demo site
TypeScript
1
star
33

SabreDAV

1
star
34

ECMAScript5Compat

Tiny library that implements some ECMAScript5 features for older browsers
JavaScript
1
star
35

city-client

JavaScript
1
star
36

dotfiles

My dotfiles
Vim Script
1
star
37

crispy

PHP
1
star