PHP code example of pkg6 / apidoc
1. Go to this page and download the library: Download pkg6/apidoc library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pkg6 / apidoc example snippets
use Pkg6\Apidoc\Builder;
g6\Apidoc\Tests\TestClasses\User",
"Pkg6\Apidoc\Tests\TestClasses\Article"
);
$output_file = 'api.html'; // defaults to index.html
try {
$builder = new Builder($classes, ".", 'Api Title', $output_file);
$builder->generate();
} catch (Exception $e) {
echo 'There was an error generating the documentation: ', $e->getMessage();