PHP code example of world-warm-worm / autodoc

1. Go to this page and download the library: Download world-warm-worm/autodoc 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/ */

    

world-warm-worm / autodoc example snippets


$objectToDocument = new MyClass();

new JsonAutodoc($objectToDocument)->generate(
    "The documentation of " . $objectToDocument::class . " endpoints",
    '/path/to/file'
);

new YamlAutodoc($objectToDocument)->generate(
    "The documentation of " . $objectToDocument::class . " endpoints",
    '/path/to/file'
);