lapis / cms
File-routed, inline-editable CMS on top of Tempest PHP
Requires
- php: ^8.5
- ext-dom: *
- ext-pdo: *
- guzzlehttp/guzzle: ^7.9
- guzzlehttp/psr7: ^2.7
- intervention/image: ^4.4
- intervention/image-tempest: ^4.0
- symfony/html-sanitizer: ^8.0
- tempest/framework: ^3.21
Requires (Dev)
- carthage-software/mago: ^1.62
- lapis/test-plugin: @dev
- pestphp/pest: ^5.3
Suggests
- ext-gd: Image variants and sharing images (or ext-imagick with IMAGE_DRIVER)
- ext-pdo_mysql: MySQL 8.0.13+ as the database (DB_CONNECTION=mysql)
- ext-pdo_pgsql: PostgreSQL 14+ as the database (DB_CONNECTION=pgsql)
- ext-pdo_sqlite: The database by default (SQLite, a file in storage/content)
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-01 21:50:10 UTC
README
A CMS with file-based routing and in-place (inline) editing, built on Tempest PHP. The files in pages/ are the routes, and editors sign in and change the text and images right on the pages, with drafts, history and a floating toolbar instead of an admin area. SQLite (or MySQL, PostgreSQL), an import map instead of a JavaScript build, and plain PHP hosting.
composer create-project lapis/app my-site # a working starter site
Documentation · Demo · Changelog
Documentation
The documentation is in docs/. lapis-cms.dev, a Lapis site of its own (lapis-cms/site), renders these files.
- Getting started: Introduction · Installation
- Building a site: Routing · Templates · Editable content · Images and media · Global settings · Assets and import map · SEO
- Data and code: Data tables · Forms · Page functions · Middleware
- Extending: Plugins
- Running a site: The editor and users · Console · E-mail · Deploying · Security · Testing
- For contributors: Tempest workarounds · API review (v1.0) · Releasing
Production
The full guide (hosting requirements, nginx and Apache, cron, backups, troubleshooting): docs/deploy.md. In short:
composer install --no-dev --optimize-autoloader ./lapis setup # the first time: .env, SIGNING_KEY, first editor ./lapis deploy # after every update: assets, uploads link, cache, checks ./lapis doctor # is it ready to go live # cron: * * * * * cd /path/to/site && php lapis schedule:run (daily backup)
ENVIRONMENT=productionin.env: page cache for guests, route cache, no debug page.- Web server document root:
public/. HTTPS is required.
License
MIT, see LICENSE.