PHP code example of mcd-nix / parser

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

    

mcd-nix / parser example snippets




use Mcd\Client;

$mcd = new Client();
$doc = $mcd->open('report.mcd');

$validation = $doc->validate();
$blocks = $doc->blocks();
$tables = $doc->tables();
$markdown = $doc->markdown(expandTables: true);

$mcd = new Client('/path/to/mcd');