Every public class and every public surface — hook names, configuration keys,
console commands, the error document, asset URLs — is marked Stable,
Experimental, Internal or Deprecated in
STABILITY.md, as specification §53 asks. The short version:
module.php contract, the ten helpers, handlers’ types, stores’ interfaces. It
changes only in a major release, after a deprecation in a minor one, with an
entry in UPGRADING.md.@deprecated, the
changelog, the upgrade notes and STABILITY.md — never by
E_USER_DEPRECATED, which the error handler would turn into an exception.tests/Architecture/DocumentationTest.php keeps the file honest: every engine
class resolves to exactly one level, no row is stale, a Deprecated row names its
replacement and removal version, and no module in modules/ or in the showcase may use an Internal class —
the rule that makes the classification mean something.
Semantic versioning. A patch release (3.2.0 → 3.2.1) fixes defects and
changes no API. A minor release (3.2 → 3.3) adds, and may change Experimental
or Internal code, with upgrade notes. A Stable API changes only in a major release
(3 → 4), after a deprecation in a minor one.
The version is written in one place, Application::VERSION, which about
and help print. composer.json deliberately has no version field: Composer
takes a package’s version from its git tag, and a second copy is a copy that
disagrees. A module’s own version() is independent of the framework’s — it is
what other modules’ constraints are checked against — and modules/Shared
changes version only when its own contract does.
A release, step by step:
composer check green locally, and CI green on both jobs: the gate on
8.2–8.5 and the 8.2 runtime job, which installs --no-dev, lints, boots and
serves the default pages.composer bench -- --compare=<the previous release's saved run> on the same
machine. Informational: a slower number is a question to answer in the
changelog, not a gate.CHANGELOG.md: rename [Unreleased] to [X.Y.Z] - YYYY-MM-DD and start a new
empty [Unreleased]. Every Changed or Removed entry has its section in
UPGRADING.md, and STABILITY.md reflects anything promoted or deprecated.Application::VERSION to X.Y.Z. DocumentationTest fails if it and the
changelog disagree.git tag -a vX.Y.Z -m "X.Y.Z", and push the tag..github/workflows/release.yml, which builds what applications
update from: lphp-vX.Y.Z.zip (git archive of the tag, so
.gitattributes decides what ships), framework.json inside it and beside it
(php laika framework:manifest), and a .sha256. It fails if
Application::VERSION is not the tag. See
Updating the framework.Nothing in this list is automated, on purpose: a release is the one moment somebody should be reading what changed, and a script that tags on green is a script that releases whatever happened to pass.