Documentation · Chapter 15

Create the right structure and files.

Creation commands choose an application shape. make commands add one conventional file without pretending to design the application for you.

Every lesson starts from the problem, explains the mechanism, then gives a concrete verification.

LESSON OBJECTIVE

What you will be able to do

Select the correct project and generator commands while predicting every file they are allowed to create.

Choose among four project types

create builds classic MVC, create-view a reactive interface, create-api JSON, and create-console pure terminal PHP.

phpaml — zsh
aml create shop
aml create-view dashboard --empty
aml create-api service
aml create-console exercise

Generate only what has meaning

make:class is neutral, make:model creates a plain model, and make:entity requires Data. Names map to src namespaces and reject unsafe paths.

Understand options

--empty controls sample content; --offline forbids downloads; --no-install defers runtime; --version selects an available release.

CHECKPOINT

Before you continue

Why does make:model remain independent from Data while make:entity requires the module?