1. Go to this page and download the library: Download ninjabachelor/mym-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/ */
ninjabachelor / mym-parser example snippets
use Ninjabachelor\MYMParser\Parser;
// Load document source.
$source = file_get_contents('document.md');
// Parse source. Result is a two-element associative array
$result = Parser::parse($source);
// The first element, 'metadata', is the array of parsed metadata. Example:
//
// array(
// 'title' => 'Lorem ipsum dolor sit amet',
// 'author' => 'Marcus Antonius',
// 'keywords' => 'latin, ipsum'
// );
$result['metadata'];
// The second element, 'content', is the document source without metadata. Example:
//
// Vestibulum tortor quam, *feugiat vitae*, ultricies eget, tempor sit amet, ante.
$result['content'];
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.