https://github.com/mattmezza/flatfileblog
Need a blog module for you website? This one's based on flat files
https://github.com/mattmezza/flatfileblog
Last synced: 5 months ago
JSON representation
Need a blog module for you website? This one's based on flat files
- Host: GitHub
- URL: https://github.com/mattmezza/flatfileblog
- Owner: mattmezza
- License: mit
- Created: 2016-11-16T23:59:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-22T09:13:05.000Z (over 9 years ago)
- Last Synced: 2025-02-13T20:37:12.903Z (over 1 year ago)
- Language: PHP
- Size: 17.6 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FlatFileBlog
Need a blog module for you website? This one's based on flat files
[](https://travis-ci.org/mattmezza/FlatFileBlog) [](https://packagist.org/packages/mattmezza/flat-file-blog) [](https://packagist.org/packages/mattmezza/flat-file-blog)
-----
`composer require mattmezza/flat-file-blog`
```php
$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