Back to Courses
Course

PHP — From Absolute Beginner to Advanced PHP Developer

Learn PHP from zero by building a real booking product — no coding experience needed.

25

Acts

218

Chapters

BookBay

The Story

Start Journey

The Index

25 Acts. 218 Chapters. One continuous story.

Act 10

Scope, Execution & the PHP Runtime

Mia splits the code into files. An included file quietly overwrites a variable, a function is "redeclared", and a script that works in the browser fails when run from the command line.

Checkpoint · Runtime

Runtime Checkpoint

Act 17

Forms, Sessions & Authentication Fundamentals

Barbers need a login to see their own schedule. Mia's first version stores passwords as plain text — Marcus stops it before it ships.

1

HTML Forms, Submission and File Uploads

HTML Forms, Submission and File Uploads

Coming soon

2

Validation, Sanitization and Normalization

Validation, Sanitization and Normalization

Coming soon

3

Sessions

Sessions

Coming soon

4

Secure Cookies: HttpOnly and SameSite

Secure Cookies: HttpOnly and SameSite

Coming soon

5

Password Hashing

Password Hashing

Coming soon

6

Authentication, Authorization and the Login Flow

Authentication, Authorization and the Login Flow

Coming soon

Checkpoint · Authentication

Authentication Checkpoint

Coming soon
Act 18

Databases with PHP

Launch week. The JSON file can't keep up, so bookings move to a database — and in the last review before launch, Marcus types ' OR 1=1 -- into the booking search and sees every customer.

1

Connecting to a Database with PDO

Connecting to a Database with PDO

Coming soon

2

Prepared Statements and SQL Injection

Prepared Statements and SQL Injection

Coming soon

3

Running Queries, Fetching Rows and PDO Exceptions

Running Queries, Fetching Rows and PDO Exceptions

Coming soon

4

Transactions and Savepoints

Transactions and Savepoints

Coming soon

5

MySQL, PostgreSQL and SQLite with PHP

MySQL, PostgreSQL and SQLite with PHP

Coming soon

6

CRUD, Repositories and Data Mapping

CRUD, Repositories and Data Mapping

Coming soon

7

N+1 and Query Optimization: A First Look

N+1 and Query Optimization: A First Look

Coming soon

Checkpoint · Database

Database Checkpoint

Coming soon
Act 19

JSON, XML & Data Interchange

Month 2. Tom wants his bookings in his accounting tool as CSV, a supplier's system sends XML, and one partner's JSON silently decodes to null.

1

Encoding and Decoding JSON

Encoding and Decoding JSON

Coming soon

2

XML with SimpleXML, DOM and XPath

XML with SimpleXML, DOM and XPath

Coming soon

3

CSV and Serialization

CSV and Serialization

Coming soon

4

DTOs and API Payload Design

DTOs and API Payload Design

Coming soon

Checkpoint · Data Interchange

Data Interchange Checkpoint

Coming soon
Act 20

PHP Security

A security researcher emails: a customer's booking note runs a script on every barber's dashboard, and someone is trying thousands of passwords on the login page.

1

Security Mindset and Trust Boundaries

Security Mindset and Trust Boundaries

Coming soon

2

SQL Injection, Command Injection, XSS and CSRF

SQL Injection, Command Injection, XSS and CSRF

Coming soon

3

Session Attacks

Session Attacks

Coming soon

4

Authentication, Passwords and Brute Force

Authentication, Passwords and Brute Force

Coming soon

5

Secrets, File Uploads and Path Traversal

Secrets, File Uploads and Path Traversal

Coming soon

6

SSRF, XXE and Deserialization Attacks

SSRF, XXE and Deserialization Attacks

Coming soon

7

Open Redirects, Header Injection and CORS

Open Redirects, Header Injection and CORS

Coming soon

8

HTTPS, TLS and Security Headers

HTTPS, TLS and Security Headers

Coming soon

9

Dependencies, Error Disclosure and Secure Production Config

Dependencies, Error Disclosure and Secure Production Config

Coming soon

Checkpoint · Security

Security Checkpoint

Coming soon
Act 21

Testing PHP Applications

Mia fixes a cancellation bug — and breaks rescheduling. Tom finds out from an angry customer.

1

Why Test? The Testing Pyramid

Why Test? The Testing Pyramid

Coming soon

2

PHPUnit Basics

PHPUnit Basics

Coming soon

3

Fixtures, Data Providers and Testing Exceptions

Fixtures, Data Providers and Testing Exceptions

Coming soon

4

Test Doubles and Testable Code

Test Doubles and Testable Code

Coming soon

5

Code Coverage and Mutation Testing

Code Coverage and Mutation Testing

Coming soon

6

Static Analysis with PHPStan

Static Analysis with PHPStan

Coming soon

7

Coding Standards and Automated Quality Checks

Coding Standards and Automated Quality Checks

Coming soon

Checkpoint · Testing

Testing Checkpoint

Coming soon
Act 22

PHP Architecture & Design

Month 4, 20 shops. Olivia asks for "more than one location per business" — and the change takes two weeks, because booking logic is spread across controllers, templates and SQL.

1

Clean Code: DRY, KISS and YAGNI

Clean Code: DRY, KISS and YAGNI

Coming soon

2

SOLID

SOLID

Coming soon

3

Separation of Concerns, Layers and MVC

Separation of Concerns, Layers and MVC

Coming soon

4

Repositories, DTOs and Value Objects

Repositories, DTOs and Value Objects

Coming soon

5

Factory, Builder, Adapter and Decorator

Factory, Builder, Adapter and Decorator

Coming soon

6

Strategy, Observer, Command and Specification

Strategy, Observer, Command and Specification

Coming soon

7

Dependency Injection and Dependency Inversion

Dependency Injection and Dependency Inversion

Coming soon

8

Domain, Application and Infrastructure Logic

Domain, Application and Infrastructure Logic

Coming soon

9

Refactoring Legacy PHP

Refactoring Legacy PHP

Coming soon

Checkpoint · Architecture

Architecture Checkpoint

Coming soon
Act 23

Advanced PHP Internals

"Export all bookings" for the biggest shop runs out of memory, and Mia can't explain why copying an array didn't cost anything — until it suddenly did.

1

How PHP Executes: the Zend Engine and Opcodes

How PHP Executes: the Zend Engine and Opcodes

Coming soon

2

OPcache, JIT and Profiling

OPcache, JIT and Profiling

Coming soon

3

Memory, zvals, References and Copy-on-Write

Memory, zvals, References and Copy-on-Write

Coming soon

4

Garbage Collection and Cyclic References

Garbage Collection and Cyclic References

Coming soon

5

Arrays and Hash Tables Inside PHP

Arrays and Hash Tables Inside PHP

Coming soon

6

PHP-FPM Internals, Workers and Lifecycles

PHP-FPM Internals, Workers and Lifecycles

Coming soon

7

Extensions and Internal Functions

Extensions and Internal Functions

Coming soon

8

Reflection

Reflection

Coming soon

9

Generators, Iterators and Fibers

Generators, Iterators and Fibers

Coming soon

10

Closures, Serialization and Streams Inside PHP

Closures, Serialization and Streams Inside PHP

Coming soon

Checkpoint · Internals

Internals Checkpoint

Coming soon
Act 24

The Modern PHP Ecosystem

Mia wrote her own logger and her own HTTP client for the SMS provider. The provider slows down, the client has no timeout, and booking pages hang. The next PHP upgrade is also coming.

1

PHP Standards: the PSRs

PHP Standards: the PSRs

Coming soon

2

HTTP Messages: PSR-7, PSR-15, PSR-17 and PSR-18

HTTP Messages: PSR-7, PSR-15, PSR-17 and PSR-18

Coming soon

3

The Composer Ecosystem and Framework-Independent PHP

The Composer Ecosystem and Framework-Independent PHP

Coming soon

4

CLI Applications and Symfony Console

CLI Applications and Symfony Console

Coming soon

5

Everyday Libraries: Monolog, Guzzle and Carbon

Everyday Libraries: Monolog, Guzzle and Carbon

Coming soon

6

Versioning, Deprecations and PHP Migrations

Versioning, Deprecations and PHP Migrations

Coming soon

Checkpoint · Ecosystem

Ecosystem Checkpoint

Coming soon
Act 25

PHP Production Engineering

Month 6, 30 shops, the first busy Saturday morning: PHP-FPM runs out of workers, pages time out, and a memory leak grows through the day.

1

Development vs Production Configuration

Development vs Production Configuration

Coming soon

2

PHP-FPM, Nginx, Apache and OPcache in Production

PHP-FPM, Nginx, Apache and OPcache in Production

Coming soon

3

Memory, Execution Time and Upload Limits

Memory, Execution Time and Upload Limits

Coming soon

4

Error, Application and Structured Logging

Error, Application and Structured Logging

Coming soon

5

Monitoring, Health Checks and Metrics

Monitoring, Health Checks and Metrics

Coming soon

6

Profiling Slow Requests and Memory Leaks

Profiling Slow Requests and Memory Leaks

Coming soon

7

Caching, Redis and Queues: A First Look

Caching, Redis and Queues: A First Look

Coming soon

8

Scaling PHP: Stateless Apps and Sessions

Scaling PHP: Stateless Apps and Sessions

Coming soon

9

Deployments, Rollback and PHP Upgrades

Deployments, Rollback and PHP Upgrades

Coming soon

Checkpoint · Production

Production Checkpoint

Coming soon

Course Complete