lapis / app
A new site on Lapis CMS
Package info
Type:project
pkg:composer/lapis/app
v1.0.0
2026-12-01 22:14 UTC
Requires
- php: ^8.5
- lapis/cms: ^1.0
Requires (Dev)
- carthage-software/mago: ^1.62
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
A site on Lapis CMS: file-routed pages, inline editing, SQLite (or MySQL, PostgreSQL).
composer install
./lapis setup # .env with a signing key, storage, vendor assets, the first account
Serve public/ on a secure origin — php -S localhost:8000 -t public/ locally, or HTTPS for custom local domains and production (Lapis checks the browser's Sec-Fetch-* headers) — then sign in at /_lapis/login.
Where things are
pages/: the routes.index.phpis/,[slug].phpany page made in the toolbar,_404.phpthe not-found page. Folders,[param]and[...catchall]work too.components/:<x-layout>and other components (x-name.view.php).assets/: CSS and JS, loaded throughimportmap.php(./lapis importmap:require <package>).lapis.config.php: language, global settings, page types.- Add
data/for your own tables,forms/for forms,app/for PHP classes when you need them.
./lapis lists the commands, and ./lapis doctor checks a server before going live.
For coding agents: .agents/skills/lapis/ is Lapis's skill, in the open Agent Skills format (./lapis skill:install --force after updating Lapis). The site's own notes for agents go in AGENTS.md.
The documentation: lapis-cms.dev.