my-app/
phpc.json # entry, binary, public, includes[], assets/
config.php
public/index.php # ?route= + PATH_INFO stub
src/Router.php # switch dispatch (VM-only constructs)
templates/layout.php
templates/home.php
assets/style.css
README.md # curl recipes + gate ladder link (#472)
No GitHub Actions.
Problem
#312 ✅ ships a minimal
phpc inittree (public/index.phphello page). Contributors building the north-star app still hand-copyexamples/003-MiniWebApp/(Router,templates/,config.php,includes[]inphpc.json).There is no one-command scaffold that matches the reference layout and passes
phpc lint --allon day one.Goal
Emit a lint-clean subset of the 003 layout (not a full copy of shipped example sources):
Scope
--profile miniwebappinbin/phpc.php/lib/Cli/PhpcInit.phptemplates/init-miniwebapp/(or generated from 003 with license header)test/unit/PhpcInitMiniWebAppTest.php: temp dir init,phpc lint --allexit 0examples/003-MiniWebApp/Acceptance criteria
docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev \ vendor/bin/phpunit --filter PhpcInitMiniWebAppTestNo GitHub Actions.
Dependencies
phpc initLinks
templates/init/,lib/Cli/PhpcInit.php