Front Matter
Front matter (yaml, json, neon, toml) parser and dumper for PHP. Front matter allows page-specific variables to be included at the top of a page.
Installation
This project can be installed via Composer:
composer require webuni/front-matter
Usage
$frontMatter = new Webuni\FrontMatter\FrontMatter();
$document = $frontMatter->parse($str)
$data = $document->getData();
$content = $document->getContent();