PHP code example of qaharmdz / doctracer

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

    

qaharmdz / doctracer example snippets


$tracer = new \Mdz\DocTracer($baseDirectory = './');

$tracer->inspect('./../src');
$tracer->inspect('./Library/');

$reports = $tracer->getResults();
var_dump($reports);

echo $output = $tracer->render([
    'title'   => 'DocTracer Test',
    'tagline' => 'PHP ReflectionClass and API documentation',
    'theme'   => 'darkmoon',
]);

file_put_contents('example-api.html', $output);