Skip to content

PHP for Beginners

From your first script to strings, arrays, functions, closures, classes, exceptions, Composer and how PHP answers a web request.

Free15 modules120 lessons3 exercises≈ 7 h

Tests check every exercise: in your browser and in the cloud

Quizzes are answered right on the site, so you need nothing installed to take the course. The course has no code exercises in the browser yet, so run the lesson examples on your own computer: set it up in three steps.

  1. Install PHP

    The lessons use PHP 8.5; examples also run on 8.3 and 8.4.

  2. Install VS Code

    Download VS Code and add the PHP Intelephense extension.

  3. Composer (for theme 14)

    Theme 14 uses Composer, the PHP package manager. Laravel Herd already includes it; on Linux, install it separately by following the Composer download page.

Syllabus