You are opening a small online store API called Pionia Shop. This step creates the empty project on your machine — about five minutes.
What you will learn
- Install the official app template with Composer
- Recognize the folders you will use in every later step
Before you start
- Set up PHP & Composer — install PHP 8.5+, required extensions, and Composer before continuing
Check your tools first
php -v
composer --versionPHP must report 8.5 or newer. If either command is missing or PHP is older, complete the setup guide first.
Create pionia-shop
composer create-project pionia/pionia-app pionia-shop
cd pionia-shop
composer check-platform-reqsYou now have:
| Path | Role |
|---|---|
services/ | Where ProductService will live |
switches/ | API version wiring (MainSwitch) |
environment/ | .env and settings.ini |
database/migrations/ | Schema changes |
public/ | Web entry |
Set the store name in environment/.env:
APP_NAME=Pionia Shop
PORT=8000Common mistakes
- Creating the project in a nested folder you did not intend — check
pwdaftercd - Skipping
cd pionia-shop— laterphp pioniacommands must run from the app root