Skip to content

Reference: MiniWebApp lint-first skeleton (examples/003-MiniWebApp) #246

@PurHur

Description

@PurHur

Problem

#67 and #210 describe the target app, but there is no tree under examples/ that drives phpc lint / ExamplesCompileTest toward the full feature set. Contributors cannot see which language/stdlib issues block the reference app until someone writes the whole app.

Goal

Add examples/003-MiniWebApp/ as a lint-first skeleton: real file layout, intentional unsupported constructs documented via phpc lint --json, README listing blockers with issue links.

Proposed layout

examples/003-MiniWebApp/
  README.md           # curl recipes + blocker table (#192, #53, #54, …)
  public/index.php    # front controller (switch/foreach/includes)
  src/Router.php
  templates/home.php
  config.php

Scope

Acceptance criteria

./phpc lint examples/003-MiniWebApp/public/index.php

prints line-accurate unsupported nodes with #192, #53, #99, etc.; README blocker table matches lint output.

Verification (local)

./script/ci-local.sh --filter LintTest

Dependencies

Non-goals

  • Making the app run on VM before language issues close
  • GitHub Actions workflow changes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions