
PHP Fundamentals
10 lessons
1 hr 11 min
This mini-course covers PHP fundamentals with a focus on modern PHP and Laravel development. In just 10 short videos, you'll learn the essential PHP concepts that will serve as your foundation for Laravel development. We focus on the PHP features and patterns you'll encounter most often in Laravel applications.
Use the PHP PlaygroundTable of contents
Why PHP
Discover why PHP remains a powerful choice for web development in 2025, its evolution, and its thriving ecosystem.
2m
Setup
Get your PHP development environment ready with two simple options: a one-command installation or Laravel Herd.
2m
Variables & Types
Learn about PHP's basic types, variable declarations, and type handling. See how PHP manages strings, numbers, and other data types.
5m
Arrays
Explore PHP's versatile arrays, which can serve as both numbered lists and key-value stores. Perfect for handling structured data.
7m
Functions
Master function creation and usage in PHP, including modern features like type declarations and anonymous functions.
5m
Loops
Understand different ways to iterate through data in PHP, with focus on the powerful foreach loop and practical use cases.
10m
Classes
Get started with object-oriented programming in PHP, learning about classes, properties, and methods with real-world examples.
13m
Modern PHP
Explore PHP's modern features like constructor property promotion, match expressions, and nullsafe operators.
10m
Composer
Learn about PHP's package manager, how to manage dependencies, and set up projects professionally.
6m
Your first PHP application
Build a complete CLI weather application, combining all learned concepts into a practical project.
11m