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
Requires
- php: >=5.3.0
- erusev/parsedown-extra: ^0.7.1
- suin/php-rss-writer: ^1.5
- symfony/yaml: ^3.1
Requires (Dev)
- phpunit/phpunit: 5.5.*
This package is auto-updated.
Last update: 2025-01-17 10:27:08 UTC
README
Need a blog module for you website? This one's based on flat files
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