Flat-file PHP CMS using Markdown, Twig and YAML

15.4kstars
1.4kforks
Last commit: 2mo 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. (getgrav.org)

Key Features

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

Use Cases

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

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. (getgrav.org)
  • Ecosystem quality varies: many plugins and themes are community-contributed; some premium themes/plugins are commercial or maintained by third parties. (getgrav.org)

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.6k
11.3k
Last commit: 1d 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

37.8k
10.2k
Last commit: 1d 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.8k
12.9k
Last commit: 16h 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

20k
4.4k
Last commit: 8d 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.1k
10.7k
Last commit: 1d 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

8.9k
2.1k
Last commit: 8d 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