PHPackages                             flsouto/mdx - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. flsouto/mdx

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

flsouto/mdx
===========

Extracts snippets from php sources and place them into the markdown

1.0.7(8y ago)123PHP

Since Oct 30Pushed 8y agoCompare

[ Source](https://github.com/flsouto/mdx)[ Packagist](https://packagist.org/packages/flsouto/mdx)[ RSS](/packages/flsouto-mdx/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (10)Used By (0)

Markdown-X
==========

[](#markdown-x)

Overview
--------

[](#overview)

Markdown-X is a command line tool that allows you to extract functional fragments of your php source code and place them into markdown blocks. You can reference the output of an extracted snippet and tell Markdown X to place that output anywhere in your final markdown.

Installation
------------

[](#installation)

You can either clone this repo or use composer:

```
composer require flsouto/mdx

```

*Notice*: nothing is added to your autoloader since this is an application, not a library.

For convenience you may want to create an alias to the process script:

```
alias mdx='php /path/to/flsouto/mdx/process.php'

```

Usage
-----

[](#usage)

Let's say you have written some library code along with a test:

```
