Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Latest commit

 

History

History
33 lines (17 loc) · 529 Bytes

README.md

File metadata and controls

33 lines (17 loc) · 529 Bytes

API Documentation Generator

Given API method schema, the following class will generate a mardown documentation of the method.

This is a proof of concept.

Usage

<?php

require 'src/generator.php';

$api_key   = 'YourAPIKey';
$generator = new DocGenerator($api_key);


$method_schema = 'schema.json'; // local file
#$method_schema = $argv[1]; // first CLI argument

$output = $generator->compile($method_schema);

file_put_contents('method.md', $output);

?>