mattmezza/flat-file-blog

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

Installs: 20

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 0

Open Issues: 7

pkg:composer/mattmezza/flat-file-blog

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

This package is auto-updated.

Last update: 2025-09-17 11:54:04 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