This website

A Symfony 8 site whose portfolio and blog content lives in the repository as Markdown, with no database.

Year
2026
Role
Everything
Stack
PHP 8.5, Symfony 8.1, Twig, AssetMapper, CommonMark

The site you are reading. It renders two collections — projects and blog posts — from Markdown files with YAML front matter, and keeps no database at all.

How it fits together

A single ContentLoader service reads a directory of Markdown files, hands each one to a MarkdownParser, and maps the result through a factory into a readonly value object. The blog and the portfolio are then just two thin repositories over that loader, which is why adding a third collection would be a file and a controller rather than a new subsystem.

Caching is keyed on the filenames and modification times of the directory, so a changed file produces a different cache key. Nothing has to be invalidated by hand, and production parses each file once per deployment instead of once per request.

Decisions worth recording

  • No database. The content is versioned alongside the code, there is no admin surface to secure, and deployment is a file copy.
  • AssetMapper rather than a bundler. The site needs one stylesheet. A Node build step to produce it would be the most fragile part of the project.
  • Drafts keyed on kernel.debug. An unfinished post is visible locally and absent in production, with no publish workflow to maintain.

← All projects