The project map
reading-list/
├── phpaml.json
├── composer.json
├── .env.example
├── public/
│ └── index.php
├── src/
│ ├── controllers/
│ ├── models/
│ ├── routes/WebApp.php
│ ├── services/
│ └── views/
├── tests/
└── runtime/The four essential areas
Public website entry and files the browser can request directly.
Your application: this is where you work most of the time.
Automated checks preventing old behavior from breaking.
Installed, rebuildable environment. Do not store your logic there.
Files you will edit in this chapter
What root files do
phpaml.json is the project's shared identity card. composer.json describes PHP libraries and autoloading. .env.example documents expected local settings without real secrets.
runtime can be regenerated. Application logic placed there may disappear after a reinstall or update.
Where would you place a new /contact address, its preparation code, and its HTML?
Show a hint
Route in src/routes, controller in src/controllers, view in src/views.