Wren CMS is a minimal, single-file content management system using PHP and SQLite that lets you create a whole website with no dependencies, no build step, and a one-minute setup.

Stars

24

7-day growth

No data

Forks

0

Open issues

0

License

MIT

Last updated

2026-07-30

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It revives the spirit of the ultra-lightweight sNews (2004–2016) for the modern web, proving that a fully functional CMS can still fit in one small file and be readable start to finish.

Who it is for

  • Developers who want a ridiculously simple CMS to quickly deploy or prototype
  • Designers seeking a blank-slate theming API with a single HTML file
  • Hobbyists running shared hosting without MySQL or Composer
  • Anyone nostalgic for the minimal web tools of the early 2000s

Use cases

  • Personal blog or portfolio site with markdown articles and pages
  • Lightweight company info site with a menu and RSS feed
  • Quick prototype or MVP where setup time must be under five minutes
  • Teaching tool to illustrate how a minimal CMS works internally

Strengths

  • Zero external dependencies — one PHP file, no Composer, no build step
  • Self-creating SQLite database with no manual SQL setup
  • Built-in security: bcrypt/argon2 passwords, CSRF protection, prepared statements, and HTML escaping
  • Simple theming via a single theme.html file with clear template tags

Considerations

  • Still early (v0.1.0) — lacks comments, image uploads, search, and multi-author features
  • No plugin or page-builder system; extensibility is very limited
  • Only supports SQLite and requires PHP 8.1+ with PDO SQLite

README quick start

Wren CMS

A whole website in one small file.

Wren is a content management system in the spirit of sNews (2004–2016), rebuilt from scratch for the modern web. One PHP file, one SQLite database it creates itself, no framework, no Composer, no build step. Upload it, open it in a browser, and start writing.

Version 0.1.0 "Troglodytes" · MIT licence

Requirements

  • PHP 8.1 or newer with PDO SQLite — standard on virtually every shared host
  • That's it. No MySQL setup, no command line, no dependencies.

Install

  1. Upload index.php to your web space (a folder of its own is tidiest).
  2. Visit it in a browser.
  3. Fill in the one-minute setup form: site title, username, password.

Wren creates wren.db beside itself and signs you in. Done.

Optional: upload .htaccess too (Apache with mod_rewrite), then switch on Pretty URLs in Settings to get /my-article instead of /?q=my-article. The .htaccess also blocks direct downloads of wren.db — recommended. On hosts without .htaccess support, keep Pretty URLs off and consider moving wren.db out of the web root once you're comfortable editing the WREN_DB constant at the top of the file.

Writing

  • Articles appear on the home page, newest first, and in the RSS feed (/rss).
  • Pages appear in the site menu (order them with menu position).
  • Both are written in markdown: **bold**, *italic*, # headings, [links](https://…), ``, lists, quotes, and fenced
    Wren trusts you.
    
  • Untick Published to keep something as a draft only you can see.

Theming

Wren ships with a built-in default theme. To use your own, place a file named theme.html beside index.php — plain HTML with these tags where you want things to appear:

{{site_title}}  {{tagline}}   {{page_title}}  {{menu}}
{{content}}     {{home_url}}  {{rss_url}}     {{year}}  {{generator}}

That's the entire theming API. A theme is one HTML file a designer can read.

Security notes

  • Passwords are stored with PHP's password_hash (bcrypt/argon2, never plain).
  • Every form is CSRF-protected; every query uses prepared statements.
  • Repeated failed logins are slowed automatically.
  • All reader-facing output of your titles and settings is HTML-escaped.

Roadmap

Comments with moderation, image uploads, search, multiple authors, exp

Description

tiny, quick, sings louder than its size suggests.

Related repositories

Similar projects matched by category, topics, and programming language.

1227cwx
1227cwx GitHub avatar

HDupay

HDupay is an open-source demo platform for accepting stablecoin payments (USDC/USDT) on EVM networks using hierarchical deterministic wallets, built with Webman (PHP) and Vue 3.

PHP
22
islam-re
islam-re GitHub avatar

Algeria-wilayas

A dataset of all 69 Algerian wilayas (provinces) following the 2026 administrative reform, provided in multiple data formats.

Data & DatabasesDatabases & Storage
15
ideaseek-zh
ideaseek-zh GitHub avatar

trading-studio

An event-driven research and analysis platform for Chinese A-share stock traders, integrating real market data, news, announcements, and AI-powered analysis without simulated data or automated trading.

PHP
14