PHPackages                             kzykhys/yaml-front-matter - 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. kzykhys/yaml-front-matter

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

kzykhys/yaml-front-matter
=========================

YAML Front-matter Parser/Dumper for PHP

v1.0.1(12y ago)2518.9k↓100%6[2 PRs](https://github.com/kzykhys/YamlFrontMatter/pulls)1MITPHPPHP &gt;=5.3.2

Since Dec 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/kzykhys/YamlFrontMatter)[ Packagist](https://packagist.org/packages/kzykhys/yaml-front-matter)[ RSS](/packages/kzykhys-yaml-front-matter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (1)

YAML Front-matter Parser/Dumper for PHP
=======================================

[](#yaml-front-matter-parserdumper-for-php)

[![Latest Stable Version](https://camo.githubusercontent.com/41a46906e695a5bad04828c5a797e2d62a2864d7ddab2f91f4c8d2a807680309/68747470733a2f2f706f7365722e707567782e6f72672f6b7a796b6879732f79616d6c2d66726f6e742d6d61747465722f762f737461626c652e706e67)](https://packagist.org/packages/kzykhys/yaml-front-matter)[![Build Status](https://camo.githubusercontent.com/502b2e66949352b4685800e75972d6a918f66a4ffe8e88d21c00b42b80434ad1/68747470733a2f2f7472617669732d63692e6f72672f6b7a796b6879732f59616d6c46726f6e744d61747465722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/kzykhys/YamlFrontMatter)[![Coverage Status](https://camo.githubusercontent.com/1935cb051bde1743d778eaf5d9817d3550d9f369a066bf56cbb0f6b57c8c6a6f/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6b7a796b6879732f59616d6c46726f6e744d61747465722f62616467652e706e67)](https://coveralls.io/r/kzykhys/YamlFrontMatter)[![SensioLabsInsight](https://camo.githubusercontent.com/0da485d1b73ef57e9dabc021f646bb219d29fd9299faa8810449deb506d4a450/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f38313739626164332d353631322d343964372d616131382d6265346165346237623832302f6d696e692e706e67)](https://insight.sensiolabs.com/projects/8179bad3-5612-49d7-aa18-be4ae4b7b820)

A PHP [YAML Front-matter](http://jekyllrb.com/docs/frontmatter/) parser/dumper using symfony/yaml.

Requirements
------------

[](#requirements)

- PHP5.3+

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

[](#installation)

Create or update your composer.json and run `composer update`

```
{
    "require": {
        "kzykhys/yaml-front-matter": ">=1.0"
    }
}
```

Usage
-----

[](#usage)

### FrontMatter::parse(string $input)

[](#frontmatterparsestring-input)

```
