PHP code example of kosuha606 / minidoc

1. Go to this page and download the library: Download kosuha606/minidoc 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/ */

    

kosuha606 / minidoc example snippets



echo (new DocsBuilder())
    ->addParseParam('category')
    ->addParseParam('description')
    ->addParseParam('version')
    ->addClassRegexp('/classes/')
    ->addPreloadClassesDir(__DIR__.'/classes')
    ->buildTemplate()
;

$docsBuilder->addStyle(new ResourceDTO(__DIR__.'/resources/style.css', ResourceDTO::TYPE_FILE));
$docsBuilder->addScript(new ResourceDTO(__DIR__.'/resources/script.js', ResourceDTO::TYPE_FILE));

$docsBuilder->setViewTemplate(__DIR__.'/views/main.php');

$docsBuilder->setParseParams(['category', 'description']);
$docsBuilder->addParseParam('mark');

$docsBuilder->addPreloadClassesDir(__DIR__.'/../../../../contexts');

$docBuilder->afterBuildData(function() {});

$docBuilder->setFilesRegexp();

$docBuilder->setLanguage('ru');
// Или указать свой массив переводов
$docBuilder->setTranslations(