PHP has changed a great deal since the days of mixing SQL and HTML in one file. Current versions bring strict typing, enums, readonly properties, property hooks and first-class callable syntax, and the ecosystem runs on Composer, PSR standards and automated tests. This course takes you from writing PHP scripts to designing small, testable, well-structured applications without relying on a framework.

What you'll learn

  • Language features from PHP 8.0 onwards: union and intersection types, named arguments, match, enums, readonly classes and property hooks
  • Object-oriented design: classes, interfaces, abstract classes, traits and when to prefer composition
  • Namespaces, autoloading and project structure with Composer and PSR-4
  • Managing dependencies: composer.json, version constraints, the lock file and auditing for vulnerable packages
  • PSR standards that matter in practice: PSR-3 logging, PSR-7 and PSR-15 HTTP, PSR-11 containers and PER coding style
  • Dependency injection and a simple container, without magic
  • Error handling with exceptions, custom exception hierarchies and logging
  • Unit and integration testing with PHPUnit and Pest, including test doubles
  • Static analysis with PHPStan or Psalm, and automatic formatting with PHP-CS-Fixer
  • Publishing a reusable package and running checks in CI

Who it's for

  • Developers who know PHP basics and want to write code that holds up in a team
  • WordPress or legacy PHP developers moving towards modern practices
  • Developers preparing to learn Laravel or Symfony properly

Prerequisites

  • PHP basics: variables, arrays, functions and forms (see PHP Fundamentals)
  • A local PHP 8.3 or later install and Composer
  • Comfort with the command line and Git

Outcomes

By the end of this course you will be able to:

  1. Design a small PHP application with clear classes, interfaces and dependencies.
  2. Manage packages and autoloading with Composer confidently.
  3. Write PHPUnit or Pest tests and use static analysis to catch bugs before running code.
  4. Read and contribute to modern framework and package codebases.

Course outline

ModuleTopic
1Modern PHP setup: versions, extensions, Composer and editor tooling
2The type system: scalar, union, nullable and strict types
3Classes, interfaces, traits and composition
4Enums, readonly classes, property hooks and value objects
5Namespaces, PSR-4 autoloading and project layout
6Composer in depth: constraints, lock files, scripts and audits
7Dependency injection and containers
8Errors, exceptions and PSR-3 logging
9Testing with PHPUnit and Pest
10Static analysis and coding standards
11HTTP with PSR-7 and PSR-15 middleware
12Project: a tested, packaged mini application with CI

FAQ

Is this a Laravel course?

No. It teaches the language and tooling underneath frameworks. After this, Laravel for Beginners and Advanced Laravel: APIs, Queues and Testing will make much more sense.

PHPUnit or Pest?

Both. Pest is built on PHPUnit and offers a shorter syntax. We show the same tests in each so you can work in either kind of codebase.

Which PHP version do you use?

We teach on a currently supported PHP 8.x release and point out which features need newer versions, so the code also works on most production servers.

How do I join?

Get in touch and we'll share the current format, schedule and enrolment details.