rkn / cms
Flat-file CMS for shared hosting — Markdown, Twig, Yoyo reactive components, PSR-7/11/15/16, no database required.
Requires
- php: ^8.2
- ext-mbstring: *
- clickfwd/yoyo: ^0.14
- laminas/laminas-httphandlerrunner: ^2.10
- league/commonmark: ^2.8
- nikic/fast-route: ^1.3
- nyholm/psr7: ^1.8
- nyholm/psr7-server: ^1.1
- phpmailer/phpmailer: ^6.9
- psr/container: ^2.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
- psr/simple-cache: ^3.0
- spatie/yaml-front-matter: ^2.1
- symfony/console: ^7.0
- symfony/yaml: ^7.0
- twig/twig: ^3.8
Requires (Dev)
- pestphp/pest: ^3.0
- phpstan/phpstan: ^1.10
README
The flat-file PHP CMS that deploys to shared hosting in minutes.
RakunCMS is a blazing fast, flat-file CMS built for shared hosting environments — powered by Markdown, Twig, Yoyo reactive components, and PSR standards. No database required.
Why RakunCMS?
We built RakunCMS as an alternative to CMSs like WordPress, Grav, Statamic, and Kirby. Our core philosophy is simplicity, performance, and accessibility.
- No database — pure Markdown: Your content lives in simple Markdown files with YAML frontmatter. Your folder structure defines your site structure.
- Runs on $3/mo shared hosting (cPanel/Plesk): Deploy effortlessly via FTP/cPanel. No persistent processes, no VPS required.
- No Node.js or Docker required: Everything runs in a pure PHP ecosystem.
- Composer-installable: Manage your site easily with Composer.
- Reactive components without writing JavaScript: Build interactive UIs with PHP components that update seamlessly without full page reloads, powered by Yoyo (htmx).
- PSR-7/11/15/16 compliant: Built on a custom micro-framework with under 5MB of total dependencies.
Installation & Quick Start
Getting started with RakunCMS is incredibly fast:
# 1. Create a new site via Composer composer create-project rkn/cms my-website cd my-website # 2. Initialize the site structure php rakun init # 3. Start the built-in development server php rakun serve
Open http://localhost:8080 in your browser to see your site running!
Core Features
- Flat-File Architecture: No MySQL configuration, no database backups. Everything is stored in Markdown and YAML.
- Reactive Yoyo Components: Build interactive, stateful PHP components (similar to Livewire) using HTMX under the hood.
- Built-in SEO Engine: Automatically generates Open Graph tags, JSON-LD markup, handles consent management, and integrates with WebMCP.
- Full-Text Search: Features an integrated inverted index for blazing fast search capabilities without needing external services like Algolia or Elasticsearch.
- Native i18n: Out-of-the-box support for multi-locale routing and content localization.
- Multi-Level Caching: Achieve 1-3ms response times in production using static HTML full-page caching coupled with OPcache.
- CLI Tools: Integrated
rakuncommand-line tool to easily clear the cache, make components, or run background queue workers.
Developer Experience (DX)
- Laravel Herd Integration: Includes a custom Valet driver (
RakunCmsValetDriver) and thephp rakun herd:installcommand for automatic site discovery and blazingly fast local development on macOS. - Clean Architecture: Built on a highly optimized, custom PSR-compliant micro-framework. Total production dependencies are kept strictly under 5MB, ensuring a lightweight footprint for any hosting environment.
How It Works
- Write Content: Create or edit
.mdfiles directly in thecontent/directory. - Customize Design: Edit the
.twigtemplates located intemplates/to match your brand. - Add Interactivity: Build stateful Yoyo components in
src/Components/with matching views intemplates/yoyo/.
Documentation
Full documentation, guides, deployment instructions, and API reference can be found at:
https://rakuncms.com/docs
Contributing
We welcome all contributions from the community! If you're looking to help out, report bugs, or understand how RakunCMS works under the hood, please read our Contributing Guide which includes an in-depth Architecture Overview.
License
GPL-3.0-or-later