PHP From Scratch | Beginner To Advanced (Udemy.com)
Learn PHP fundamentals then build a job listing website from the ground up, using a Laravel-like infrastructure
Created by: Brad Traversy
Last updated January 2025
What you will learn
- Learn the fundamentals of PHP programming
- Learning modules for data types, functions, loops, OOP, databases and more
- Build a job listing website from the ground up without using any frameworks or libraries
- Create a custom Laravel-like router that takes params & middleware
- Learn to utilize namespaces and PSR-4 Autoloading
- Build an authentication system using sessions
- Great precursor if you plan on learning Laravel
Course Description
This course is broken up into two parts. First, we have seven learning modules to learn the fundamentals of PHP programming, including:
Data Types & Variables
Arrays & Iteration
Control Structures & Conditionals
Functions & Scope
Object Oriented Programming
Superglobals ($_GET, $_POST, $_SESSION, $_COOKIES, etc)
Database Integration & PDO
After that, we go for a hands-on approach and build a job listing website. We build this from the ground up without any framework or libraries. These sections will teach you how to structure a vanilla PHP project and is a great precursor to learning Laravel or another framework.
Here is what we will do in the project videos:
We will create a custom Laravel-like router. We will refactor this a bunch of times to keep adding features like accepting HTTP methods, params and middleware.
We will structure our project into two main folders, which will be called Framework and App. Framework will be the core that includes classes like Router, Database, Validation, and Session. App will include our controllers and views.
We will create CRUD operations for job listings.
We will implement an authentication and authorization system as well as protect routes using custom middleware.
We will add a search feature to search/filter listings by keywords and/or location
We will learn to validate and sanitize data as well as use prepared statements with PDO to protect against SQL injection attacks.
If you are a beginner, I suggest taking the course from the beginning and go through all of the learning modules. If you are more experienced and know the fundamentals, you can jump right into the project.
Instructor Details
- 4.6 Rating
2,010 Reviews
Brad Traversy
Brad Traversy has been programming for around 12 years and teaching for almost 5 years. He is the owner of Traversy Media which is a successful web development YouTube channel and specializes in everything from HTML5 to front end frameworks like Angular as well as server side technologies like Node.js, PHP and Python. Brad has mastered explaining very complex topics in a simple manner that is very understandable. Invest in your knowledge by watching Brad's courses.
More courses by Brad Traversy
Modern JavaScript From The Beginning 2.0 (Just Updated) (2025)
4.6 (36,520 Reviews)
Provider: Udemy
Time: 40.2h
$17.00
Modern HTML & CSS From The Beginning 2.0 (2025)
4.8 (28,669 Reviews)
Provider: Udemy
Time: 24.3h
$129.99
Bootstrap 4 From Scratch With 5 Projects (2018)
4.6 (17,122 Reviews)
Provider: Udemy
Time: 11.3h
$84.99
MERN Stack Front To Back: Full Stack React, Redux & Node.js (2019)
4.4 (15,750 Reviews)
Provider: Udemy
Time: 11.9h
$99.99
50 Projects In 50 Days - HTML, CSS & JavaScript (2025)
4.6 (12,876 Reviews)
Provider: Udemy
Time: 19.4h
$119.99
More PHP courses
Basic PHP Development with Bootstrap, GitHub and Heroku (2022)
4.8 (447 Reviews)
Provider: Udemy
Time: 4.8h
Free
Sending email with PHP: from Basic to Advanced (2026)
4.8 (297 Reviews)
Provider: Udemy
Time: 2.1h
$64.99
Write PHP Like a Pro: Build a PHP MVC Framework From Scratch (2026)
4.7 (3,330 Reviews)
Provider: Udemy
Time: 6.7h
$99.99
Reviews
By Jesse Critter on 7/21/2026
Brad (the instructor) goes over each concept incrementally, building the student's understanding in a structured way that reinforces the underlying concepts and gives the student sufficient time to familiarize themselves before advancing the course material.
By Salk on 5/28/2026
Amazing course, I have learned a lot from it. One of very few instructors that really explains the topic. I have watched the entire course at 2 x the speed and followed it step by step to completion and still managed to understand almost 90% of the course. One suggestion, which I am sure many will feel the same way, can you create a scenario/case based course that more focused on entrepreneur that takes them from the planning, sizing, pricing, etc... sort of to help prepare someone taking these courses with objective to work for oneself. A very well done, keep it going - I will follow your courses
By Alan Williams on 4/5/2026
This is an excellent course. I have searched Udemy and enrolled on a few, but this is the best I have found. You can tell Brad has used PHP a lot. The course content, which includes starter and finished files, is excellent too.
By Oleg on 12/31/2025
Everything is clear and accessible. But the routing system seems a little strange to me. I am used to 'get' and 'set' methods (getters and setters) being used to get and assign values to object properties. Here, they are used to register routes, which is somewhat misleading. These methods do practically nothing and can easily be replaced: $router->get('/listings', 'ListingController@index'); with $router->registerRoute('GET', '/listings', 'ListingController@index'); The route method also looks strange and is not very efficient with looping through all routes in foreach. Why not just put all the routes in an associative array?
By Liam on 12/8/2025
Great course with everything you need to know to start developing production ready apps, the workopia project can be quite tough to fully grasp all the inner workings but a bit of challenge is always a good thing
By Julio Lagos Carrera on 11/26/2025
The first part of the course about the foundations of PHP is good and he make everything pretty clear. About the second part, I feel like the organization is a bit chaotic, even though, everything is clearly explained and this MVC "mini-framework" seems like a good starting point to learn Laravel now. Thanks for the course!
By TUNDE Ogunjimi on 11/14/2025
I really learnt a lot from this course, and I consider it easy to follow. I especially like the idea of building a real project to see how all the different parts fit together. Although, I plan to work more with Laravel, I always like to learn concepts from first principles.
By Blake McKenna on 10/16/2025
The content is pretty good and taught well, however, the videos, starting in the Functions section would just stop playing randomly. I would have to refresh my page and it sometimes worked and sometimes it didn't and would just come back on it's own. I know it wasn't me, because I wasn't even touching the keyboard when it would happen. It was just frustrating and caused delays. But again, the content was pretty good.
By Cristian Ernandes Freitas Matos on 9/29/2025
A really nice couse!
By Martin Suyl on 9/25/2025
Brad Traversy is a great tutor and explains everything he does in the code (and more). It was nice to see the total route from basic language syntax to deploying the site in production. A few things were a bit difficult to understand for me, because I was unaware of the underlying architector for websites. All in all another excellent course by Brad.
Quality Score
No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.
Overall Score : 92 / 100












