Search by

A headless CMS that runs on any shared hosting

Package info

github.com/elverdaderobutschito/LessHeadCMS

Type:project

pkg:composer/elverdaderobutschito/lessheadcms

Statistics

Installs: 14

Dependents: 0

Suggesters: 0

Stars: 3

Open Issues: 0

v0.6.0 2026-11-24 17:10 UTC

This package is auto-updated.

Last update: 2026-11-25 07:45:42 UTC


README

A minimal headless CMS for shared hosting: PlantUML → SQLite → Flight PHP → Preact. Put a class diagram into schema/, call /bootstrap?token=… once — and get a database, a REST API and an editorial UI, ready to use.

Features

  • Define your content model as a PlantUML class diagram — no SQL, no migrations by hand
  • Generic, auto-generated editorial UI: forms, lists, media library, rich text editing
  • Public REST API with pagination, filtering, sorting
  • Multilingual content and UI
  • Fine-grained roles & permissions, including read-only API keys for headless frontends
  • Workflow/approval states with tasks
  • Webhooks: trigger a build (e.g. Netlify) on workflow transitions or on create/update/delete
  • Runs on plain PHP shared hosting — no Composer or root access needed at runtime

Quick start

  1. Copy the contents of this folder to your web server.
  2. Put your class diagram as a .puml file into schema/ (an example, simplecms.puml, is already there — replace or remove it). If schema/ contains more than one .puml file, you must say which one to use by adding &schema=<filename> to the URL in the next step.
  3. Copy config.example.php to config.php and set a random BOOTSTRAP_TOKEN.
  4. Call https://<host>/bootstrap?token=<BOOTSTRAP_TOKEN> (add &schema=<filename> if needed, see step 2).
  5. Log in with the initial password and change it immediately.

Documentation

Example: web CMS base model

templates/web-cms.puml shows how to model an arbitrary website (description: templates/web-cms.md). It works in layers: website (global settings, navigation) → page (tree, one record per language) → block (in an area such as MAIN or SIDEBAR – a role, not a position; the layout is up to the frontend) → content (channel-neutral posts, events, services, snippets). The core – Website, Navigation, NavItem, Page and abstract class Block – stays; per project or design you adapt the enums Template and Area, the block types and the content types. It is also a complete example of the sort field type, of compositions (Page *-- "n" TextBlock : on: the blocks are edited in the form of their page) and of the multilingual pattern with {translations} („Übersetzung anlegen“ copies a page with all its blocks into another language). All names are English; a commented-out block at its end documents the variant with several websites in one CMS – with a named uniqueness group {unique: slug_per_site}, so a slug is unique per website and language next to the translation group of the page. A German version with the same structure is templates/web-cms_de.puml (templates/web-cms_de.md).

License

LessHeadCMS is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License, version 3 or (at your option) any later version (AGPL-3.0-or-later). It is distributed without any warranty; see LICENSE for the full text. Third-party licenses: see third-party-licenses/.

Copyright (C) 2026 Udo Butschinek