Problem
#632 / #1886 / #2000 established phpc init profiles for miniwebapp, sessionsweb, and apijson with template parity checkers (#695, #1902). #1999 adds examples/006-FileUploadWeb/ but contributors cannot scaffold the same tree via CLI.
Goal
./phpc init --profile fileupload my-upload
./phpc lint my-upload/example.php
./phpc serve 127.0.0.1:8080 my-upload
curl -s -F 'doc=@README.md' http://127.0.0.1:8080/example.php
Produces a tree byte-synced to examples/006-FileUploadWeb/ once that example lands.
Scope
| Piece |
Path |
| Template |
templates/init-fileupload/ from examples/006-FileUploadWeb/ |
| CLI |
lib/Cli/PhpcInit.php — PROFILE_FILEUPLOAD = 'fileupload' |
| Parity checker |
script/check-init-fileupload-parity.sh + FILEUPLOAD_INIT_PARITY_GATE=1 in ci-fast (default 0 until template lands) |
| Test |
test/unit/PhpcInitFileUploadTest.php (mirror PhpcInitSessionsWebTest.php) |
| Docs |
docs/phpc-json.md, examples/README.md, ./phpc init --help |
Acceptance criteria
./script/ci-fast.sh --filter PhpcInitFileUpload
php script/check-init-fileupload-parity.sh
Verification (local / Docker only)
docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev \
vendor/bin/phpunit --filter PhpcInitFileUpload
No GitHub Actions.
Dependencies
Links
Problem
#632 / #1886 / #2000 established
phpc initprofiles for miniwebapp, sessionsweb, and apijson with template parity checkers (#695, #1902). #1999 addsexamples/006-FileUploadWeb/but contributors cannot scaffold the same tree via CLI.Goal
./phpc init --profile fileupload my-upload ./phpc lint my-upload/example.php ./phpc serve 127.0.0.1:8080 my-upload curl -s -F 'doc=@README.md' http://127.0.0.1:8080/example.phpProduces a tree byte-synced to
examples/006-FileUploadWeb/once that example lands.Scope
templates/init-fileupload/fromexamples/006-FileUploadWeb/lib/Cli/PhpcInit.php—PROFILE_FILEUPLOAD = 'fileupload'script/check-init-fileupload-parity.sh+FILEUPLOAD_INIT_PARITY_GATE=1inci-fast(default0until template lands)test/unit/PhpcInitFileUploadTest.php(mirrorPhpcInitSessionsWebTest.php)docs/phpc-json.md,examples/README.md,./phpc init --helpAcceptance criteria
Verification (local / Docker only)
docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev \ vendor/bin/phpunit --filter PhpcInitFileUploadNo GitHub Actions.
Dependencies
master$_FILESmove_uploaded_fileif example saves uploads (not blocking echo-only v1)Links