Flat-file PHP CMS using Markdown, Twig and YAML

15.4kstars
1.4kforks
Last commit: 18h ago
Repo age: 12y old
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 Services

Ghost

Ghost

Publishing platform with newsletters and paid memberships

51.9k
11.3k
Last commit: 8h ago

Ghost is an open-source publishing platform for blogs and websites with built-in newsletters, membership management, and paid subscriptions.

Alternative to:
Ghost(Pro)
Ghost(Pro)
+13
Halo

Halo

Extensible open-source website builder and CMS

38k
10.2k
Last commit: 11d ago

Halo is an open-source CMS and site builder with themes, plugins, an editor, backups, REST APIs, and optional AI extensions for content and knowledge sites.

Alternative to:
WordPress.com
WordPress.com
+18
WordPress

WordPress

Open-source content management system for websites and blogs

20.9k
12.9k
Last commit: 8h ago

WordPress is an open-source CMS for building and managing websites and blogs with themes, a block editor, and a large plugin ecosystem.

Alternative to:
WordPress.com
WordPress.com
+13
Wagtail

Wagtail

Django-based content management system focused on flexibility

20.2k
4.4k
Last commit: 9h ago

Wagtail is an open-source CMS built on Django and Python, offering an editor-friendly admin UI, flexible content modeling with StreamField, and optional headless APIs.

Alternative to:
Adobe Experience Manager
Adobe Experience Manager
+19
WooCommerce

WooCommerce

Ecommerce plugin for WordPress

10.2k
10.7k
Last commit: 8h ago

WooCommerce is an open-source ecommerce platform for WordPress, enabling customizable online stores with products, checkout, payments, shipping, taxes, and extensions.

Alternative to:
Wix eCommerce
Wix eCommerce
+5
EverShop

EverShop

TypeScript-first eCommerce platform built with React and GraphQL

9.6k
2.2k
Last commit: 24d ago

Open-source TypeScript eCommerce platform for building customizable online stores with React and GraphQL, including catalog, checkout, orders, and an admin dashboard.

Alternative to:
WooCommerce
WooCommerce
+6