Minimal PHP blog engine that reads Markdown files from posts/ and renders
index + post pages. No database, no admin UI.
- Place your posts in
posts/as either:posts/your-slug.mdposts/YYYY/MM/your-slug/index.md
Each file may start with front matter:
---
title: My First Post
date: 2025-08-07
summary: Optional one-liner for the index.
----
Edit
config.phpand setbase_urlif deploying to a domain. -
Serve
index.phpandpost.phpfrom your document root, or move everything underpublic/and adjust paths accordingly. For pretty URLs, usepublic/.htaccessand route/post/<slug>topost.php?slug=<slug>.
This engine uses Parsedown for Markdown rendering. The library is included in lib/Parsedown.php, so no extra installation steps are required.