Official PHPAML tutorial
Master MVC.
Build something real.
A rich, progressive path to build a complete task application with routes, controllers, models, views, SQLite, security, and tests.
REQUEST LIFECYCLERoute→Controller→Model→View
An explicit architecture where every part has one clear responsibility.
18chapters
120+concepts
2complete projects
2languages
/ 00Before you start
A few basics. No environment to assemble.
- PHP and class fundamentals
- HTML, CSS, and forms
- Basic terminal commands
- GET, POST, and database concepts
AML provides PHP, Composer, SQLite, and the local server.
/ 01—18Table of contents
From first terminal to the complete platform.
Chapters 1 through 12 build the MVC foundations. Chapters 13 through 18 teach AML View, AML Engine, and PHPAML Data through a second complete project.
01
CHAPTER 01Install AML and create a project
- 01.1AML versus PHPAML
- 01.2Install on Windows, macOS, and Linux
- 01.3Choose the CLI language
- 01.4Run aml doctor
- 01.5Create and install a project
- 01.6Start live reload
- 01.7Troubleshoot installation
Available→
02
CHAPTER 02Understand the PHPAML structure
- 02.1MVC overview
- 02.2Controllers and models
- 02.3Views and partials
- 02.4Configuration files
- 02.5Database and migrations
- 02.6Public assets
- 02.7The AML-managed runtime
Available→
03
CHAPTER 03Follow an HTTP request
- 03.1HTTP methods
- 03.2Paths and parameters
- 03.3Request and Response
- 03.4Middleware pipeline
- 03.5Router selection
- 03.6Controller execution
- 03.7The complete lifecycle
Available→
04
CHAPTER 04Define and organize routes
- 04.1GET and POST routes
- 04.2Controller handlers
- 04.3Dynamic parameters
- 04.4Named routes
- 04.5Route groups
- 04.6Route middleware
- 04.7404 and 405 responses
Available→
05
CHAPTER 05Build controllers
- 05.1TaskController
- 05.2CRUD actions
- 05.3Receive a Request
- 05.4Render a view
- 05.5Redirect after forms
- 05.6Return JSON
- 05.7Dependency injection
Available→
06
CHAPTER 06Create views and partials
- 06.1Pass view data
- 06.2Escape output
- 06.3Conditions and loops
- 06.4Header and footer partials
- 06.5Create and edit forms
- 06.6Validation errors
- 06.7Flash messages
Available→
07
CHAPTER 07Add CSS, JavaScript, and images
- 07.1Public asset URLs
- 07.2Responsive CSS
- 07.3Form styling
- 07.4Progressive JavaScript
- 07.5Delete confirmation
- 07.6Images and favicon
- 07.7Browser cache diagnostics
Available→
08
CHAPTER 08Configure SQLite and migrations
- 08.1Environment variables
- 08.2Database CLI configuration
- 08.3PDO connection
- 08.4Create the tasks table
- 08.5Run migrations
- 08.6Rollback safely
- 08.7Development versus production
Available→
09
CHAPTER 09Create the model
- 09.1Task model
- 09.2Read and find records
- 09.3Insert a task
- 09.4Update its state
- 09.5Delete safely
- 09.6QueryBuilder
- 09.7Transactions
Available→
10
CHAPTER 10Assemble the complete MVC app
- 10.1Connect every MVC layer
- 10.2List tasks
- 10.3Create and edit
- 10.4Complete and reopen
- 10.5Delete a task
- 10.6Handle missing records
- 10.7Add a due-date challenge
Available→
11
CHAPTER 11Validate, secure, and debug
- 11.1Input validation
- 11.2Output escaping
- 11.3CSRF protection
- 11.4Secure sessions
- 11.5Security headers
- 11.6404 and 500 pages
- 11.7APP_DEBUG and logs
🔒Coming soon
12
CHAPTER 12Test, build, and deploy
- 12.1Route and controller tests
- 12.2Model test database
- 12.3Run aml test
- 12.4Production diagnostics
- 12.5SEO and sitemap
- 12.6Run aml build
- 12.7Deploy over SSH or SFTP
🔒Coming soon
13
CHAPTER 13Start with AML View
- 13.1Create a View app
- 13.2Declarative pages
- 13.3Elements without new
- 13.4VStack and HStack
- 13.5Components
- 13.6Layouts and Slot
- 13.7Stylesheets and assets
🔒Coming soon
14
CHAPTER 14Build a component system
- 14.1Reusable components
- 14.2Props and composition
- 14.3Grid and ZStack
- 14.4Forms and feedback
- 14.5Loading and disabled states
- 14.6Responsive layouts
- 14.7Accessible interfaces
🔒Coming soon
15
CHAPTER 15Master reactive state
- 15.1State attributes
- 15.2Computed properties
- 15.3Collections
- 15.4Nested structures
- 15.5State transactions
- 15.6Validation
- 15.7Browser persistence
🔒Coming soon
16
CHAPTER 16Understand AML Engine
- 16.1PHP-to-browser compilation
- 16.2Client actions
- 16.3Effects and cleanup
- 16.4Dependencies and debounce
- 16.5Concurrent effects
- 16.6Navigation without reloads
- 16.7Error boundaries
🔒Coming soon
17
CHAPTER 17Persist with PHPAML Data
- 17.1Entities and identifiers
- 17.2DbContext and sets
- 17.3Typed queries
- 17.4Relations
- 17.5Migrations
- 17.6Transactions
- 17.7SQLite, SQL, and MongoDB
🔒Coming soon
18
CHAPTER 18Assemble the full PHPAML platform
- 18.1View with an API backend
- 18.2Data-driven pages
- 18.3Engine interactions
- 18.4Authentication
- 18.5i18n and themes
- 18.6Browser tests
- 18.7Production deployment
🔒Coming soon
Course project
Build a real
task application.
Complete CRUD, SQLite, validation, CSRF, sessions, tests, SEO, and deployment. Every chapter adds a working piece to the same project.
01Create and edit✓
02Complete and filter✓
03Validate and secure✓
04Test and deploy✓