# Learn PHP

> The language serving most of the web, mastered modern: typed functions, real OOP, PDO, security and testing: until you write PHP that is fast, safe and a pleasure to inherit. The full outline of the LoWisa PHP course: 15 levels, 44 lessons. The first level is free.

The language serving most of the web, mastered modern: typed functions, real OOP, PDO, security and testing: until you write PHP that is fast, safe and a pleasure to inherit.

This is the whole PHP course in the LoWisa phone app, level by level: 15 levels, 44 lessons and 132 ideas, each taught and then checked. The first level, Start Here: PHP on the Web, is free.

## What you can do as you go

| Where you are | What you can do |
| --- | --- |
| Start Here: Level 4 | You write modern typed PHP: the request model, arrays, functions and strict types are second nature. |
| Levels 5–8 | You build real object models with namespaces and Composer, handle the web safely, and speak PDO fluently. |
| Levels 9–11 | You debug, log, secure and modernise: enums, attributes, match and the idiom of current PHP. |
| Levels 12–14 | You test, cache, profile and run production PHP: and can walk into any legacy codebase with a plan. |
| Project ladder | Five desktop app projects from an honest guestbook to a published Composer package: the PHP the modern web is actually built on. |

## The PHP course, level by level

| Level | Lessons in it |
| --- | --- |
| Start Here: PHP on the Web | PHP Runtime and Request Lifecycle; Server-Side Web Programming |
| Level 1: PHP Foundations | Variables and Types; Conditions and Loops; Functions |
| Level 2: Arrays & Data | Indexed and Associative Arrays; Array Operations; Structured Application Data |
| Level 3: Functions & Types | Parameters and Return Types; Closures; Modern Type Declarations |
| Level 4: Object-Oriented PHP | Classes and Objects; Interfaces and Traits; Composition and Inheritance |
| Level 5: Namespaces & Packages | Namespaces; Autoloading; Composer and Dependency Management |
| Level 6: Web Requests | HTTP Requests and Responses; Forms and Validation; Cookies and Sessions |
| Level 7: Database Programming | PDO; Transactions; Safe Query Patterns |
| Level 8: Errors & Debugging | Exceptions and Error Handling; Debugging; Logging |
| Level 9: Security | Input and Output Security; Authentication and Session Risks; Secure PHP Patterns |
| Level 10: Modern PHP | Attributes and Enums; Modern OOP Features; Writing Idiomatic Current PHP |
| Level 11: Testing | Unit and Integration Testing; Test Doubles; Testable PHP Design |
| Level 12: Performance | Runtime and Memory; Caching; Profiling PHP Applications |
| Level 13: Production PHP | Configuration and Environments; CLI and Background Work; Reliable Production Patterns |
| Level 14: PHP Mastery | Language Internals; Architecture and Maintainability; Reading and Improving Large PHP Systems |

Every level ends with a checkpoint and flashcards on what it taught.

## Start Here: PHP on the Web: what the free first level teaches

**PHP Runtime and Request Lifecycle**

- **Request in, response out.** PHP’s natural unit is the **request**: the server runs your script per request and sends back the response.
- **Share-nothing model.** Each request starts **fresh**: no memory shared with the last one, which is why PHP scales so forgivingly.
- **The interpreter.** The PHP **interpreter** compiles scripts to opcodes per run, and the opcode cache keeps hot scripts compiled.

**Server-Side Web Programming**

- **Server side.** PHP runs on the **server**: the browser only ever sees the HTML your code emitted.
- **Embedding and escaping.** PHP embeds in templates between its tags: and every dynamic value is **escaped** on the way out.
- **Where PHP lives.** PHP powers most of the web’s **CMS** platforms, shops and services: inherited PHP is a career-long certainty.

## Projects you build

The course has 5 projects, built in the LoWisa desktop app, each in the role of someone who does this work.

| Role | Project | The situation |
| --- | --- | --- |
| PHP Developer | Guestbook With Honest Foundations | A photography studio wants a guestbook: visitors post entries, the owner moderates. Tiny scope, professional bones: strict types, escaping, CSRF and sessions done right from line one. |
| Backend Developer | Invoice API With Typed Domain | A bookkeeping tool needs an invoice service: create, list, mark paid, totals: a JSON API whose domain is typed objects and enums, not nested arrays. |
| PHP Engineer | Rescue a Legacy Shop Codebase | You inherit a 2012-era shop: SQL concatenation, echo-everything templates, register-login with md5, and a checkout that double-charges on refresh. Secure and stabilise it without a rewrite. |
| Senior PHP Engineer | Ticketing Platform With Queue Workers | A support-desk product needs its core: tickets in via web and API, notifications out via background workers, attachments handled safely: production-shaped PHP with measured performance. |
| PHP Specialist | Publish a Validation Component | Your projects re-implement validation forever. Build the definitive piece: a typed, framework-free validation library: fluent rules, structured errors: published as a Composer package. |

## How you learn it

- **One idea at a time.** Each lesson teaches a few ideas and asks you about each before it moves on.
- **A checkpoint and flashcards at the end of every level.** See [Checkpoints and flashcards](/help/checkpoints-and-flashcards/).
- **Games on what you have learned.** See [Revision games](/help/revision-games/).
- **On your phone.** The app is on Google Play and the App Store. See [Getting started](/help/getting-started/).

## Frequently asked questions

### How many levels does the LoWisa PHP course have?

15 levels with 44 lessons, from Start Here: PHP on the Web to Level 14: PHP Mastery.

### Is the PHP course free?

The first level, Start Here: PHP on the Web, is free, with its checkpoint and flashcards. A plan opens the rest; see Plans and credits in the Help centre.

### Where does the PHP course start?

With Start Here: PHP on the Web. Its first lesson is "PHP Runtime and Request Lifecycle".

## Start PHP with the free first level

LoWisa is on Google Play and the App Store.

---

Source: https://lowisa.dev/courses/php/ · Updated 2026-11-25
