Lapis Docs

For contributors

Releasing

Lapis lives under the lapis-cms GitHub organization. Composer packages use the lapis/ vendor prefix and the Lapis\ PHP namespace.

Repository Package Role
lapis-cms/cms lapis/cms The CMS core
lapis-cms/app lapis/app Starter site (composer create-project)
lapis-cms/*-plugin lapis/* Official first-party plugins
lapis-cms/plugins Community and official plugin registry
lapis-cms/site Documentation site (lapis-cms.dev)
lapis-cms/demo Public demo (demo.lapis-cms.dev)

Versioning and release workflow

Lapis follows semantic versioning. Public surfaces frozen by the API review only change in compatible ways within a major version.

Each package repository ships .github/workflows/release.yml, triggered by pushing a vX.Y.Z tag:

Repository Checks before publishing Release notes
lapis-cms/cms tag matches Lapis::VERSION, dated entry in the changelog (## X.Y.Z – YYYY-MM-DD), full tests.yml suite passes changelog entry
lapis-cms/*-plugin dated entry in CHANGELOG.md, tests.yml passes against the released lapis/cms changelog entry
lapis-cms/app site.yml installs the released lapis/cms and verifies the starter boots generated by GitHub

Once all checks pass, the workflow creates the GitHub release and notifies Packagist (PACKAGIST_USERNAME and PACKAGIST_TOKEN, optional when the Packagist GitHub hook is enabled). A failed check publishes nothing.

Changing Lapis's tables

Lapis's tables come from the Tempest migrations in src/Database/Migrations (0000-00-01_lapis_01_… onwards). Never edit a released migration, as existing sites have already run it and Tempest checks its hash (migrate:validate). Add a new numbered migration instead, built from Tempest's statements (CreateTableStatement, AlterTableStatement, IndexStatement) so it compiles for SQLite, MySQL and PostgreSQL. Indexed or primary-key text columns must be VARCHAR(255) for MySQL compatibility.

tests/Feature/SchemaTest.php compares the resulting schema against tests/Fixtures/lapis-schema.<sqlite|mysql|pgsql>.json. When adding a migration, delete the three snapshots and rerun the test on each database to regenerate them.