Learn PHP
Structured lessons from the basics up — follow the path below in order, at your own pace.
-
1
Level 1 — Beginner Beginner 26 lessons
Start here if you have never written a line of PHP before. Work through these lessons in order — each one builds on the last.
Lessons in this module
What Is PHP? Why Learn PHP? Installing PHP Setting Up Your Development Environment Your First PHP Script How PHP Code Runs Variables & Data Types Type Juggling & Casting Operators Strings String Interpolation & Heredoc Constants Conditionals Match Expressions Loops Arrays: Indexed and Associative Array Functions Functions Arrow Functions Superglobals & Handling Form Data Working with Sessions & Cookies Including Files Object-Oriented Basics Constructor Property Promotion Comments & Code Style Debugging Basics -
2
Beginner Projects Beginner 1 lesson
Build these with nothing but what Level 1 covered — variables, arrays, functions, superglobals, and sessions. 1. Command Line Calculator Rea...
-
3
Level 2 — Intermediate Intermediate 19 lessons
These lessons cover object oriented programming in depth, Composer and packages, working with a real database, and the everyday tools of a w...
Lessons in this module
Object-Oriented Programming in Depth Traits Enums Exceptions & Error Handling Namespaces & Autoloading Composer & Packages Working with JSON File I/O Working with Dates and Times Regular Expressions Closures & Callbacks Generators & yield Working with Databases: PDO Authentication & Password Hashing Sending HTTP Requests Testing with PHPUnit Debugging with Xdebug Logging Errors Dependency Management & PSR Standards -
4
Intermediate Projects Intermediate 1 lesson
Build these using OOP, Composer, PDO, and PHPUnit from Level 2. 1. Blog with a Real Database Model Post and Comment classes backed by PDO +...
-
5
Level 3 — Advanced Advanced 16 lessons
These lessons cover advanced language features, security, performance, and how a real PHP application is built with a framework and shipped...
Lessons in this module
Advanced OOP Patterns Dependency Injection & Containers Attributes Fibers & Async Basics The PHP Lifecycle & PHP-FPM Performance Optimization & OPcache Security Fundamentals Building a REST API in Depth Introduction to Laravel Introduction to Symfony Static Analysis & Code Quality Package Development & Publishing Modern PHP Versions: 8.0 Through 8.4 Working with Queues & Background Jobs Testing Strategies Packaging & Deployment -
6
Advanced Projects Advanced 1 lesson
Build these using OOP, Composer, PDO, and framework knowledge from Level 3. 1. Task Queue Worker Build a simple job queue backed by a databa...
-
7
What You Should Know Now — and What's Next 1 lesson
What You Should Know Now Core syntax: variables, control flow, arrays, functions, superglobals Object oriented programming: classes, interfa...