The Wayback Machine - https://web.archive.org/web/20201101075828/https://github.com/webuni/front-matter
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
run
 
 

README.md

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

Topics

Resources

License

Packages

No packages published
You can’t perform that action at this time.