Nativa PHP Core

Article

Flow and ADR mindset behind the minimal starter kit

Article cover illustration: Architecture, php, architecture, openspec

Most starter kits are forks. This one was built from the first line. Every decision documented, every trade-off recorded.

From scratch, but systematically

The whole starter kit was built through the OpenSpec-native workflow:
every change has its own change with proposal.md, design.md and tasks.md. The specification is written before the implementation, and quality is checked continuously ... not at the end.

Key ADRs

#DecisionChoiceWhy
ADR-1From-scratch vs forkFrom scratchNo legacy baggage, auditable line by line
ADR-2One DB vs per-modulePer-module SQLiteModel isolation, natural module addition
ADR-3Framework vs zero-depZero-dependencyProduction without vendor/, full control
ADR-4Routing#[Route] attributesAction scanning, route-name → URL generation
ADR-5Frontend baselineChrome 70 + fallbacksThe same strategy as the cascade theme

Security by default

  • Strict CSP with per-request nonce
  • DB-backed rate limiting
  • CSRF on all state-changing POSTs
  • Admin role gate on /mark/*

The starter kit remains a collection of decisions, not a framework. Each ADR is a door you can open or close. The architecture is transparent, you see every choice because you made it.


A decision recorded is a decision remembered. A decision undocumented is a decision lost.


→ OpenSpec workflow: how changes are structured → Anatomy of a change: from proposal to implementation

Sources

Comments (0)

No comments yet — be the first to react.

Reader questions (0)

No questions yet — be the first to ask.

Stuck on something in this article? Ask below. Your name is shown publicly; your email is never stored. A question appears here once a moderator approves it.