2017 © Pedro Peláez
 

library frontmatter

Frontmatter allows page-specific variables to be included at the top of a template using the YAML,JSON or INI format.

image

vkbansal/frontmatter

Frontmatter allows page-specific variables to be included at the top of a template using the YAML,JSON or INI format.

  • Wednesday, February 1, 2017
  • by vkbansal
  • Repository
  • 3 Watchers
  • 9 Stars
  • 776 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

!! No Longer Maintained !!

use https://github.com/webuni/front-matter instead, (*1)

Latest Stable Version Build Status Scrutinizer Code Quality Code Coverage Code Climate License Dependency Status, (*2)

SensioLabsInsight, (*3)

FrontMatter

Frontmatter allows page-specific variables to be included at the top of a template using the YAML or JSON format., (*4)

Requirements

  • PHP >= 5.4

Installation

Create or update your composer.json and run composer update, (*5)

$ composer require vkbansal/frontmatter

Supported Formats

  • YAML
  • JSON
  • INI

Quick usage

<?php

require '../vendor/autoload.php';

use VKBansal\FrontMatter\Parser;
use VKBansal\FrontMatter\Document;

//Parse a document
$doc = Parser::parse(<<<EOF
---
layout: custom
my_list:
    - one
    - two
    - three
---
Main Title
-----
### Subtitle

Lorem ipsum......
EOF
);

var_dump($doc->getConfig()); // ['layout' => 'custom', 'my_list' => ['one', 'two',  'three']]
var_dump($doc->getContent());
/*
Main Title
-----
### Subtitle

Lorem ipsum.....
*/

For more detailed usage see website, (*6)

License

MIT, (*7)

Changelog

Changelog, (*8)

The Versions

01/02 2017

dev-master

9999999-dev https://github.com/vkbansal/FrontMatter

Frontmatter allows page-specific variables to be included at the top of a template using the YAML,JSON or INI format.

  Sources   Download

MIT

The Requires

 

The Development Requires

parser json ini yaml metadata front frontmatter front-matter matter

12/07 2015

v1.3.2

1.3.2.0 https://github.com/vkbansal/FrontMatter

Frontmatter allows page-specific variables to be included at the top of a template using the YAML,JSON or INI format.

  Sources   Download

MIT

The Requires

 

The Development Requires

parser json ini yaml metadata front frontmatter front-matter matter

28/01 2015

1.3.x-dev

1.3.9999999.9999999-dev https://github.com/vkbansal/FrontMatter

Frontmatter allows page-specific variables to be included at the top of a template using the YAML,JSON or INI format.

  Sources   Download

MIT

The Requires

 

The Development Requires

parser json ini yaml metadata front frontmatter front-matter matter

08/01 2015

v1.3.1

1.3.1.0

Frontmatter allows page-specific variables to be included at the top of a template using the YAML or JSON format.

  Sources   Download

MIT

The Requires

 

The Development Requires

parser json yaml front frontmatter front-matter matter

27/11 2014

v1.3.0

1.3.0.0

Frontmatter allows page-specific variables to be included at the top of a template using the YAML or JSON format.

  Sources   Download

MIT

The Requires

 

The Development Requires

parser json yaml front frontmatter front-matter matter

10/11 2014

v1.2.0

1.2.0.0

Frontmatter allows page-specific variables to be included at the top of a template using the YAML or JSON format.

  Sources   Download

MIT

The Requires

 

The Development Requires

parser json yaml front frontmatter front-matter matter

26/10 2014

v1.1.1

1.1.1.0

Frontmatter allows page-specific variables to be included at the top of a template using the YAML or JSON format.

  Sources   Download

MIT

The Requires

 

The Development Requires

parser json yaml front frontmatter front-matter matter

23/10 2014

v1.1.0

1.1.0.0

Frontmatter allows page-specific variables to be included at the top of a template using the YAML or JSON format.

  Sources   Download

MIT

The Requires

 

The Development Requires

parser json yaml front frontmatter front-matter matter

22/10 2014

v1.0.0

1.0.0.0

Frontmatter allows page-specific variables to be included at the top of a template using the YAML or JSON format.

  Sources   Download

MIT

The Requires

 

The Development Requires

parser json yaml front frontmatter front-matter matter

17/10 2014

v0.1.1

0.1.1.0

Frontmatter allows page-specific variables to be included at the top of a template using the YAML or JSON format.

  Sources   Download

MIT

The Requires

 

The Development Requires

parser json yaml front frontmatter front-matter matter

15/09 2014

v0.1.0

0.1.0.0

Frontmatter allows page-specific variables to be included at the top of a template using the YAML or JSON format.

  Sources   Download

MIT

The Requires

 

The Development Requires

parser json yaml front frontmatter front-matter matter