Download the PHP package modularr/yaml-front-matter without Composer
On this page you can find all versions of the php package modularr/yaml-front-matter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package yaml-front-matter
YAML Front Matter
An easy to use class for handling YAML frontmatter in PHP.
What does this class do?
This class is a PHP implementation of Jekyll Front Matter.
Any file that contains a YAML front matter block will be processed as a special file. The front matter must be the first thing in the file and must take the form of valid YAML set between triple-dashed lines. Here is a basic example:
Between these triple-dashed lines, you can set variables using YAML. You can access them via the fetch
function. Conversion to Markdown is optional.
How to use
Installation
Install in via Composer:
If you are using the package in a VanillaJS project make sure you have: