PHP
Learn modern PHP 8: strict types, match, enums, readonly classes, property hooks, PDO, security, Composer, PSR standards, Laravel/Symfony and deployment.
Start course →
What you'll learn
- Explain PHP's request model and set up modern projects with the CLI, php.ini and Composer.
- Write typed PHP with strict types, match, functions, closures, arrays and multibyte strings.
- Design object-oriented code with promotion, readonly classes, enums, interfaces, traits and PHP 8.4 property hooks.
- Handle errors, types, namespaces and autoloading, and use static analysis to catch bugs early.
- Build secure web features with validation, sessions, PDO, JSON APIs and defences against XSS, CSRF and SQL injection.
- Use PSR standards, frameworks, testing tools, OPcache and container-based deployment in real projects.
Syllabus
Modern PHP Foundations
- What PHP Is Today
- Running PHP: CLI, Built-in Server, php.ini and Composer
- Syntax, Variables, Types and strict_types
Control Flow, Functions, Strings and Arrays
- Control Flow and match
- Functions, Named Arguments and Closures
- Strings and Arrays
Object-Oriented PHP
- Classes, Constructor Promotion, Readonly and Enums
- Inheritance, Interfaces, Abstract Classes and Traits
- Property Hooks, Asymmetric Visibility, Attributes and Magic Methods
Errors, Types and Code Organisation
- Exceptions and Error Handling
- The Type System and Static Analysis
- Namespaces, Autoloading and Composer Packages
PHP on the Web
- The Request Lifecycle, PHP-FPM and Front Controllers
- Forms, Validation, Sessions and Cookies
- Security: XSS, CSRF, SQL Injection and Passwords
Databases, JSON, HTTP and Files
- Databases with PDO
- JSON APIs and HTTP Clients
- Files, Dates and Times
Standards, Frameworks and Testing
- PHP-FIG Standards: PSRs and Coding Style
- Laravel and Symfony at a Glance
- Testing and Code Quality: PHPUnit, Pest, PHPStan and Rector
Performance, Deployment and Revision
- Performance: OPcache, JIT and Profiling
- Deployment and Configuration
- Legacy PHP Versus Modern PHP
- Revision and Interview Questions