← Languages

PHP

Full course · 21 lessons

PHP powers over 75% of all websites, including WordPress, Laravel applications, and massive platforms like Facebook. It is the most accessible backend language with an unmatched ecosystem. These are the definitive free resources — vetted, current, and complete.

Knowledge Course
01

Getting Started with PHP

Install PHP, run scripts from the CLI, and understand the request lifecycle.

45 min
02

Variables and Data Types

Scalar types, arrays, type juggling, and strict typing.

60 min
03

Numbers and Math

Integers, floats, integer overflow, and math functions.

50 min
04

Strings and String Functions

String literals, interpolation, and the string function toolbox.

60 min
05

Control Flow

Conditionals, match expressions, and loops.

50 min
06

Arrays

Indexed and associative arrays, array functions, and sorting.

60 min
07

Functions

Declarations, parameters, variadics, and return types.

60 min
08

Classes and Objects

Properties, methods, constructors, and object semantics.

75 min
09

Namespaces and Autoloading

Namespaces, use statements, and PSR-4 autoloading with Composer.

60 min
10

Inheritance and Traits

extends, abstract classes, interfaces, and trait composition.

75 min
11

Errors and Exceptions

Throwables, try/catch/finally, and custom exceptions.

60 min
12

Files and Streams

Reading and writing files, streams, and JSON.

60 min
13

Databases with PDO

PDO, prepared statements, and safe database access.

75 min
14

Web Basics: HTTP, Forms, Sessions

Superglobals, HTTP headers, form handling, and sessions.

75 min
15

Functional PHP

Closures, arrow functions, and higher-order helpers.

60 min
16

Dates and Time

DateTime, DateTimeImmutable, and timezone handling.

50 min
17

Regular Expressions

PCRE patterns, preg_match, and replacement.

50 min
18

Composer and Packages

Composer.json, dependency management, and Packagist.

60 min
19

Testing with PHPUnit

Unit tests, assertions, and data providers.

60 min
20

Generators and Fibers

yield generators, iterators, and cooperative concurrency with Fibers.

75 min
21

Security and Performance

Injection defense, escaping, opcache, and profiling.

75 min
Curated Resources