
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Meet your instructor and join this complete modern PHP eight bootcamp. Learn fundamentals, syntax, control structures, and object-oriented programming while building four web projects and two capstones.
Discover how PHP powers modern web development, from content driven websites and WordPress to ecommerce with WooCommerce, and explore frameworks like Laravel and Symfony for building full stack applications.
What's this module about.
What's PHP? Let's talk about the language, but also the ecosystem and runtime.
How does a PHP program run? How to make it live for other to see? What's a web server and how does it interact with PHP? How does PHP run the code? Is PHP a compiled or interpreted language?
Let's take a look at a typical PHP file.
First thing you need to learn. What's the difference between expression and a statement.
What's this module about.
I'm explaining the way we're going to run PHP programs so you're ready for the next videos!
Let's learn about expressions and basics of variables in PHP.
Explore the data types.
Play around with types in PHP. Understand type coercion.
How do you run some code conditionally? Let's learn the "if" statement.
Let's learn how to repeat the code until certain condition is true. We'll also build a fun little "guess the secret" game.
Learn the for loop and do a rocket launch countdown, liftoff!
You're going to learn do...while loop by building a Dice Roll game.
Learn the foreach loop by counting how many items we have in a shopping basket.
Switch statement is sometimes forgotten. If you ever used the switch statement anywhere, you've probably never seen it used like that before.
Match expression is on of the newest PHP features.
How to use multiple PHP files.
Let me introduce functions, chunks of reusable code that can accept arguments and return values.
Not all defined arguments are required. Optional arguments allow more flexible functions.
Limiting the types of arguments the function accepts, and what type of value it can return.
Some functions need to accept variadic arguments. Let's see example usage.
For ad-hoc tasks you might want to define an inline function, passed directly as a another function argument. These functions don't have a name, and are called anonymous functions.
Learn about references. Reference does not hold a value, instead it points the original value, for example it points to another variable.
Learn the difference between passing by value and passing by reference.
Let's take a large data set and see if working with data "by reference" is any faster or uses less memory that "by value".
Learn about the scope of variables in PHP.
Can we have nothing and be fine? Sure we can, at least in PHP. Learn about null values - meaning about nothing.
When one type is not enough.
Remembering the order of parameters is the nightmare and nemezis of all the programmers. It's simply impossible. Especially if the language can be inconsistent about that. Which, unfortunately, is the PHP case. Named arguments axes that problem.
Functions are often inline, they need to do a simple thing and be forgotten about. Perfect use case for arrow functions. Similar to arrow functions in JavaScript.
Pure functions have no side effects. Let's learn what does means and why it's important.
Learn what higher-order functions are and what makes them extremely useful in everyday coding. You might have been using higher-order functions without realizing it.
Recursion - function calls itself. As an example we'll calculate factorial of a number.
Generator functions can return value multiple times, being called once. Sounds like magic? Let's see what it's all about and when it can save your life!
Why we need so many ways to represent strings?
How do you get a length of a string? First 5 characters? Last character? How you convert a string to uppercase and more.
Simple and advanced methods to find a string in a string.
Pad string with spaces or placeholder characters (eg. fill a hidden credit card number with *). How do you do these things?
It's not really that advanced, you're gonna be using this more than you think!
In-depth introduction to array type. We'll cover all types of arrays + many useful array functions.
An introduction to classes and objects.
Class inheritance and how it works.
Why class members need different visibility, what that means and examples.
Static class members, why they're useful and examples.
Interface, a prototype of a class. Why they exist and why they're useful. The whole section is based o payment provider example.
Use abstract methods to build a base class that can't be created on it's own.
A full example with abstract class and interface.
Traits, easy way to add functionality to a class.
Final and readonly - limiting changes in classes.
New addition to PHP - enum classes.
Build your first dynamic website. Display the info from PHP in a nicely formatted table. Run the PHP built-in server, learn some shorthand PHP syntax. See how to optimally organize code in a PHP file.
Forms let you accept user input. Let's create a page that displays the form and can validate and sanitize the input.
Cookies and sessions are essential. You will build a user visit counter, tracking the user name using a cookie, and counting visits in a session.
Query string parameters is a way to pass arguments to a page. You will build a product filtering mini-project. It will have a form with 2 options: size and color. Submitting the form, will filter the list of displayed products.
Ready for modern PHP 8?
This course covers the most modern version of PHP but that's not all - you'll learn through practical projects, small & bigger!
Starting with tiny examples - just 1 per video to cover the language basics, we'll move on to 4 small but useful projects that mix all you've learned so far.
Next you'll build 2 big projects, Guestbook & Blog with an admin panel.
You'll not only learn the PHP language but also the best practices of software development.
Don't be fooled by AI being everywhere, it's still won't replace real skills and knowledge, which you can't gain by vibe coding!
This course offers in-depth explanation:
MVC (build your own framework like Laravel)
Error handling
Sessions & cookies
Security, tokens & best practices
Working with databases
And much, much more!
Who is this course for?
It's for people who both never coded before & for people who just don't know PHP, but also for the guys who either want to up skill or worked with older PHP versions. The complexity level is increased gradually.
Why join the course?
Taught by the best-selling instructor of courses on Laravel, Symfony - so you are in good hands. I know how to teach people PHP, as I've been doing that for years!