jsding / front-matter

An extendable front matter (yaml, json, neon, toml) parser and dumper for PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Front Matter

Packagist Build Status Scrutinizer Code Quality Code Coverage

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

Alternatives

About

An extendable front matter (yaml, json, neon, toml) parser and dumper for PHP

License:MIT License


Languages

Language:PHP 100.0%