mattmezza/flat-file-blog

Need a blog module for you website? This one's based on flat files

v1.0 2016-11-17 19:12 UTC

This package is auto-updated.

Last update: 2022-01-17 03:51:17 UTC


README

Need a blog module for you website? This one's based on flat files

Build Status Latest Stable Version License

composer require mattmezza/flat-file-blog

$blog_manager = new BlogManager($url, $posts_dir, $posts_perpage, $pages_dir, $authors);
$page = $blog_manager->get_page("page");
// reads file page.md from dir $pages_dir
// parses yaml initial section into $page->metas
// converts md into html and puts content in $page->body
echo $page->body;

Check out tests/BlogTest.php for more information.

Matteo Merola mattmezza@gmail.com