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 LIFECYCLE
RouteControllerModelView

An explicit architecture where every part has one clear responsibility.

18chapters
120+concepts
2complete projects
2languages
/ 00

Before you start

A few basics. No environment to assemble.

AML provides PHP, Composer, SQLite, and the local server.

/ 01—18

Table 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 01

Install AML and create a project

  1. 01.1AML versus PHPAML
  2. 01.2Install on Windows, macOS, and Linux
  3. 01.3Choose the CLI language
  4. 01.4Run aml doctor
  5. 01.5Create and install a project
  6. 01.6Start live reload
  7. 01.7Troubleshoot installation
Available
02
CHAPTER 02

Understand the PHPAML structure

  1. 02.1MVC overview
  2. 02.2Controllers and models
  3. 02.3Views and partials
  4. 02.4Configuration files
  5. 02.5Database and migrations
  6. 02.6Public assets
  7. 02.7The AML-managed runtime
Available
03
CHAPTER 03

Follow an HTTP request

  1. 03.1HTTP methods
  2. 03.2Paths and parameters
  3. 03.3Request and Response
  4. 03.4Middleware pipeline
  5. 03.5Router selection
  6. 03.6Controller execution
  7. 03.7The complete lifecycle
Available
04
CHAPTER 04

Define and organize routes

  1. 04.1GET and POST routes
  2. 04.2Controller handlers
  3. 04.3Dynamic parameters
  4. 04.4Named routes
  5. 04.5Route groups
  6. 04.6Route middleware
  7. 04.7404 and 405 responses
Available
05
CHAPTER 05

Build controllers

  1. 05.1TaskController
  2. 05.2CRUD actions
  3. 05.3Receive a Request
  4. 05.4Render a view
  5. 05.5Redirect after forms
  6. 05.6Return JSON
  7. 05.7Dependency injection
Available
06
CHAPTER 06

Create views and partials

  1. 06.1Pass view data
  2. 06.2Escape output
  3. 06.3Conditions and loops
  4. 06.4Header and footer partials
  5. 06.5Create and edit forms
  6. 06.6Validation errors
  7. 06.7Flash messages
Available
07
CHAPTER 07

Add CSS, JavaScript, and images

  1. 07.1Public asset URLs
  2. 07.2Responsive CSS
  3. 07.3Form styling
  4. 07.4Progressive JavaScript
  5. 07.5Delete confirmation
  6. 07.6Images and favicon
  7. 07.7Browser cache diagnostics
Available
08
CHAPTER 08

Configure SQLite and migrations

  1. 08.1Environment variables
  2. 08.2Database CLI configuration
  3. 08.3PDO connection
  4. 08.4Create the tasks table
  5. 08.5Run migrations
  6. 08.6Rollback safely
  7. 08.7Development versus production
Available
09
CHAPTER 09

Create the model

  1. 09.1Task model
  2. 09.2Read and find records
  3. 09.3Insert a task
  4. 09.4Update its state
  5. 09.5Delete safely
  6. 09.6QueryBuilder
  7. 09.7Transactions
Available
10
CHAPTER 10

Assemble the complete MVC app

  1. 10.1Connect every MVC layer
  2. 10.2List tasks
  3. 10.3Create and edit
  4. 10.4Complete and reopen
  5. 10.5Delete a task
  6. 10.6Handle missing records
  7. 10.7Add a due-date challenge
Available
11
CHAPTER 11

Validate, secure, and debug

  1. 11.1Input validation
  2. 11.2Output escaping
  3. 11.3CSRF protection
  4. 11.4Secure sessions
  5. 11.5Security headers
  6. 11.6404 and 500 pages
  7. 11.7APP_DEBUG and logs
Coming soon
12
CHAPTER 12

Test, build, and deploy

  1. 12.1Route and controller tests
  2. 12.2Model test database
  3. 12.3Run aml test
  4. 12.4Production diagnostics
  5. 12.5SEO and sitemap
  6. 12.6Run aml build
  7. 12.7Deploy over SSH or SFTP
Coming soon
13
CHAPTER 13

Start with AML View

  1. 13.1Create a View app
  2. 13.2Declarative pages
  3. 13.3Elements without new
  4. 13.4VStack and HStack
  5. 13.5Components
  6. 13.6Layouts and Slot
  7. 13.7Stylesheets and assets
Coming soon
14
CHAPTER 14

Build a component system

  1. 14.1Reusable components
  2. 14.2Props and composition
  3. 14.3Grid and ZStack
  4. 14.4Forms and feedback
  5. 14.5Loading and disabled states
  6. 14.6Responsive layouts
  7. 14.7Accessible interfaces
Coming soon
15
CHAPTER 15

Master reactive state

  1. 15.1State attributes
  2. 15.2Computed properties
  3. 15.3Collections
  4. 15.4Nested structures
  5. 15.5State transactions
  6. 15.6Validation
  7. 15.7Browser persistence
Coming soon
16
CHAPTER 16

Understand AML Engine

  1. 16.1PHP-to-browser compilation
  2. 16.2Client actions
  3. 16.3Effects and cleanup
  4. 16.4Dependencies and debounce
  5. 16.5Concurrent effects
  6. 16.6Navigation without reloads
  7. 16.7Error boundaries
Coming soon
17
CHAPTER 17

Persist with PHPAML Data

  1. 17.1Entities and identifiers
  2. 17.2DbContext and sets
  3. 17.3Typed queries
  4. 17.4Relations
  5. 17.5Migrations
  6. 17.6Transactions
  7. 17.7SQLite, SQL, and MongoDB
Coming soon
18
CHAPTER 18

Assemble the full PHPAML platform

  1. 18.1View with an API backend
  2. 18.2Data-driven pages
  3. 18.3Engine interactions
  4. 18.4Authentication
  5. 18.5i18n and themes
  6. 18.6Browser tests
  7. 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

Coming next

The complete course will be released chapter by chapter.

Review the basics