https://github.com/mattmezza/blog-manager
An utility to manage a small blog with files and markdown syntax
https://github.com/mattmezza/blog-manager
articles blog cms file kiss markdown no-database pages yaml
Last synced: 6 months ago
JSON representation
An utility to manage a small blog with files and markdown syntax
- Host: GitHub
- URL: https://github.com/mattmezza/blog-manager
- Owner: mattmezza
- Created: 2017-01-07T20:20:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-07T23:14:39.000Z (over 8 years ago)
- Last Synced: 2025-02-13T15:36:29.084Z (8 months ago)
- Topics: articles, blog, cms, file, kiss, markdown, no-database, pages, yaml
- Language: PHP
- Size: 14.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[]()
[]()
[]()
[]()blog-manager
=====A PHP utility class to manage a small blog with files and markdown syntax
`composer require mattmezza/blog-manager`
```php
require_once 'vendor/autoload.php';$config = array(
"posts" => array(
"dir" => __DIR__ . "/posts",
"perpage" => 5
),
"pages" => array(
"dir" => __DIR__ . "/pages/"
),
"url" => "http://localhost:8000"
);$bm = new Blog\Manager($config);
$page = $bm->get_page("test");// echo $page->title;
echo $page->body;
// echo $page->metas->wooow;
````test.md`
```
title: test
wooow: 'YAML syntax'
------------
# Test
Let's _try_
```###### Matteo Merola