Skip to content
This repository was archived by the owner on Dec 10, 2017. It is now read-only.

PHPoole/Frontmatter-File-Loader

Repository files navigation

Locates md files, parses contents to exposes the front matter (and the body) in the SplFileInfo object.

require_once 'vendor/autoload.php';

$loader = new \Loader\Loader('./test/content');
$files = $loader
    ->ext('md')
    ->load();

foreach ($files as $file) {
    /* @var $file \Loader\SplFileInfo */
    echo $file->getFrontmatter() . "\n";
    echo $file->getBody() . "\n";
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages