mcd-nix/parser

PHP wrapper for Markdown CSV Document packages

Maintainers

Package info

github.com/NikitaSukhikh/mcd-php

pkg:composer/mcd-nix/parser

Transparency log

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0-alpha.2 2026-05-26 14:10 UTC

This package is auto-updated.

Last update: 2026-06-26 14:23:19 UTC


README

PHP wrapper for Markdown CSV Document packages.

This package delegates parsing and conversion work to the mcd CLI. Composer installs the PHP client code, but PHP developers still need the mcd binary installed and available on PATH.

Install the CLI with Cargo:

cargo install mcd-cli --version 0.1.0-alpha.2

Or download a prebuilt binary from:

https://github.com/NikitaSukhikh/mcd/releases/tag/v0.1.0-alpha.2

To install from a checkout of this package:

composer install

From Packagist, use:

composer require mcd-nix/parser
<?php

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);

If the mcd binary is not on PATH, pass the binary path:

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