Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
PHP From Scratch | Beginner To Advanced
Rating: 4.8 out of 5(1,966 ratings)
10,932 students

PHP From Scratch | Beginner To Advanced

Learn PHP fundamentals then build a job listing website from the ground up, using a Laravel-like infrastructure
Created byBrad Traversy
Last updated 1/2025
English

What you'll 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 content

16 sections135 lectures18h 18m total length
  • Welcome To The Course4:15
  • What Is PHP?11:05
  • Setup PHP - MacOS4:37
  • Setup PHP - Windows4:41
  • Text Editor Setup4:15
  • PHP Sandbox Setup3:47

Requirements

  • You only need to know the basics of HTML

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.






Who this course is for:

  • Beginners as well as experienced developers that want to learn how to structure a PHP project with no frameworks