Flat-file PHP CMS using Markdown, Twig and YAML

15.7k stars 1.4k forks last commit first released MIT

Actively maintained

Last commit 26 Aug 2026.

Grav screenshot

Grav is a modern, open-source flat-file CMS written in PHP that delivers fast, flexible websites without a database. It uses Markdown for content, Twig for templating, YAML for configuration and provides a package manager and rich plugin ecosystem for extensibility.

Key Features

  • Flat-file architecture: pages are simple Markdown files organized in folders for easy versioning and deployment.
  • Twig templating and theme inheritance for flexible, performant presentation layers.
  • YAML-based configuration with environment overrides and blueprint-driven admin forms.
  • Built-in package manager (GPM) to install and update plugins, themes and Grav itself.
  • Optional Admin plugin offering a responsive GUI, page blueprints, forms and one-click installs/updates.
  • Smart caching and image processing to optimize performance for production sites.

Use Cases

  • Marketing or brochure websites that benefit from fast static-like performance and simple content workflows.
  • Documentation and knowledge portals using skeletons and modular pages to structure content.
  • Blogs, portfolios and small-to-medium sites that prefer file-based versioning and easy backups without a database.

Limitations and Considerations

  • Requires a PHP environment (minimum supported version historically noted as PHP 7.3.6+); verify current PHP compatibility for recent releases before deployment.
  • Ecosystem quality varies: many plugins and themes are community-contributed; some premium themes/plugins are commercial or maintained by third parties.

Grav provides a compact, extensible alternative to database-backed CMSes, focusing on developer-friendly tools and fast runtime behavior. It is suitable for projects where simple content workflows, file-based versioning and flexible theming are priorities.

Categories:

Tags:

Tech Stack:

Share:

Similar to Grav

Contao logo

Contao

Open-source PHP content management system based on Symfony

436
172
Last commit

Contao is an open-source PHP CMS for building professional, accessible, SEO-friendly and performant websites and web applications; extensible via Symfony bundles and Composer.

LGPL-3.0Actively maintained
Alternative to:
Drupal Cloud logo
Drupal Cloud
+19
BigTree CMS logo

BigTree CMS

Open-source PHP CMS with a developer-focused editable interface

223
56
Last commit

Open-source PHP and MySQL CMS focused on developer control, template-driven sites, modular content types, and an intuitive admin/editor experience.

Actively maintained
Alternative to:
WordPress.com logo
WordPress.com
+12
WonderCMS logo

WonderCMS

Lightweight flat-file CMS for small websites and blogs

736
167
Last commit

WonderCMS is a tiny flat-file CMS for building fast websites and blogs with in-place editing, themes/plugins, and one-click updates and backups—no database required.

MITActively maintained
Alternative to:
WordPress.com logo
WordPress.com
+14

W (WCMS)

Lightweight PHP flat-file wiki-style CMS for experimental websites

55
7
Last commit

Lightweight PHP wiki/CMS for spontaneous, heterogeneous websites; flat-file JSON storage, Markdown editing, media manager, themes, RSS, and mobile-friendly editing.

AGPL-3.0Actively maintained
Alternative to:
Atlassian Confluence logo
Atlassian Confluence
+12
Dotclear logo

Dotclear

Open-source PHP blogging and web-publishing platform

A lightweight open-source PHP blog engine with multilingual support, themes/plugins, media manager, and multi-database compatibility (MySQL, MariaDB, PostgreSQL, SQLite).

Activity unknown
Alternative to:
WordPress.com logo
WordPress.com
+9
Zenphoto logo

Zenphoto

Open-source, gallery-focused PHP CMS for media websites

319
129
Last commit

A lightweight PHP CMS focused on photo, video and audio galleries with integrated blogging (Zenpage), theme support and extensible plugins.

Actively maintained
Alternative to:
SmugMug logo
SmugMug
+18