Roadmap
PHP developer roadmap
A clear path from your first line of PHP to writing modern, secure, object-oriented code, ready for a framework like Laravel. Tick off each step as you learn it.
- Complete beginner
- 3 to 6 months
- 6 stages · 32 steps
- Updated October 2026
Next: · Progress can't be saved in this browser (private mode?)
-
Get set up
0 / 4 doneUnderstand what PHP does and run it on your own computer.
-
How the web works
Browsers, servers, URLs and HTTP: PHP runs on the server and sends HTML back to the browser.
-
Install PHP and a local server
Use XAMPP or Laragon on Windows, Herd on macOS, or PHP from your package manager on Linux.
-
A code editor
VS Code with a PHP extension (Intelephense) or PhpStorm. Learn to open a folder and use the terminal.
-
Your first script
Echo "Hello", mix PHP with HTML, and run a script from the command line with php file.php.
-
-
The basics
0 / 7 doneThe building blocks of every PHP program.
-
Variables and data types
Strings, integers, floats, booleans, null, and how PHP converts between them.
-
Operators and control flow
if / else, match, comparisons (== vs ===), and loops: for, foreach and while.
-
Arrays
Indexed and associative arrays, nested arrays, and functions like array_map, array_filter and sort.
-
Functions
Parameters, return values, default values, type hints, and variable scope.
-
Working with strings and dates
Concatenation, string functions, sprintf, and dates with DateTime.
-
Forms, $_GET and $_POST
Read form input, validate it, and show errors. Never trust input from the browser.
-
Include and require
Split pages into reusable files: header, footer and functions.
-
-
Working with data
0 / 5 doneStore data, remember users and talk to other services.
-
SQL and MySQL
Create tables, INSERT, SELECT with WHERE and JOIN, UPDATE and DELETE.
-
PDO and prepared statements
Connect to the database with PDO and always use prepared statements to stop SQL injection.
-
Sessions and cookies
Keep users logged in between pages, and know the difference between a session and a cookie.
-
Files and uploads
Read and write files, handle uploads safely (check type and size, never trust the name).
-
JSON and calling APIs
json_encode / json_decode, and calling REST APIs with cURL or Guzzle.
-
-
Modern PHP
0 / 7 doneHow professional PHP is written today.
-
Classes and objects
Properties, methods, constructors, visibility, static members and constructor promotion.
-
Interfaces, abstract classes and traits
Design code that is easy to extend and test. Learn the difference between the three.
-
Namespaces and autoloading
Organise classes in namespaces and let PSR-4 autoloading find them, no more require lists.
-
Composer
Install and update packages, and autoload your own classes.
-
Errors and exceptions
try / catch / finally, custom exceptions, and reading error messages calmly.
-
PHP 8 features
match, enums, readonly properties, named arguments, the nullsafe operator and union types.
-
Types and strict_types
Type every parameter and return value, and turn on declare(strict_types=1) to catch bugs early.
-
-
Good practice
0 / 6 doneHabits that make your code safe and easy to work on.
-
Security basics
Escape output (XSS), prepared statements (SQL injection), CSRF tokens, and password_hash / password_verify.
-
Code style (PSR-12)
Write code that looks like everyone else's, and let a formatter do it for you.
-
Debugging with Xdebug Optional
Step through code with breakpoints instead of var_dump everywhere.
-
Unit testing with PHPUnit
Write tests for your functions and classes, and run them before every change.
-
Regular expressions Optional
Validate and search text with preg_match and preg_replace.
-
-
Next steps
0 / 3 donePut it together and pick your direction.
-
Build a project from scratch
A to-do app or a small blog with login, a database and forms, with no framework, so you understand what frameworks do.
-
Learn a framework
Laravel is the most popular PHP framework and the most asked for in jobs.
-
Prepare for interviews
Practise the PHP questions employers ask, from types to OOP and security.
-
Stuck on a step?
Ask the community. Mention the step you are on and what you tried.
Learning with friends?
Share this roadmap with someone who is starting out, and follow it together.