Mô tả

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.






Bạn sẽ học được gì

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

Yêu cầu

  • You only need to know the basics of HTML

Nội dung khoá học

16 sections

Introduction

6 lectures
Welcome To The Course
04:15
What Is PHP?
11:05
Setup PHP - MacOS
04:37
Setup PHP - Windows
04:41
Text Editor Setup
04:15
PHP Sandbox Setup
03:47

Data Types, Variables & Built-in Functions

9 lectures
PHP Tags, Printing & Comments
09:28
Variables
05:45
Data Types
10:21
String Concatenation
07:35
Type Casting & Juggling
10:10
Variables Challenge
04:40
Arithmetic Operators & Functions
12:27
String Functions
06:14
Dates & Times
07:51

Arrays & Iteration

10 lectures
Intro To Arrays
12:27
Array Functions
20:02
Associative Arrays
05:28
Multi-Dimensional Arrays
07:12
Array Challenges
14:45
Basic Loops
12:02
Nested Loops
07:21
Looping Through Arrays
08:32
Multi-Dimensional Array Iteration
04:57
Array & Loop Challenges
09:46

Control Structures & Conditionals

10 lectures
If Statements
06:12
Conditional HTML Output
05:32
Comparison & Logical Operators
06:43
Conditionals In Loops - break & continue
06:24
Activity: Dynamic Job Listings
05:19
FizzBuzz Challenge
05:26
Switch Statements
06:42
Ternary Operator
09:29
Null Coalescing Operator
04:17
Names Challenge
07:25

Functions

12 lectures
Functions & Return Values
05:03
Parameters & Arguments
06:22
Global & Local Scope
06:10
Constants
05:05
Optional Type Declarations
04:36
Activity: Job Listings Helper Functions
07:05
Average Salary Challenge
07:44
Anonymous Functions & Closures
06:28
Callback Functions
04:41
Arrow Functions
04:33
Format Salary Refactor Challenge
03:29
More Function Challenges
12:26

Object Oriented Programming (OOP)

8 lectures
OOP Overview
05:33
Creating a Class
10:33
Access Modifiers, Getters & Setters
06:47
Inheritence
07:07
Static Members & Methods
03:21
OOP Challenges
10:54
Abstract Classes
10:27
Interfaces
08:36

Superglobals

10 lectures
Overview Of Superglobals
03:37
$_SERVER - Get Server Information
11:53
Environment Variables & $GLOBALS
06:38
$_GET - Data From Query Params
15:45
$_POST - Data From Forms
12:25
$_REQUEST - Superglobal
02:40
$_FILES - Uploading Files
12:18
Message Alert Challenge
08:21
$_SESSION - Creating a Session
08:44
$_COOKIE - Working With Cookies
10:22

Database Integration & PDO

12 lectures
An Intro To Databases
07:34
MySQL Setup - MacOS
03:04
MySQL Setup - Windows
02:13
MySQL Shell & Making Queries
13:51
MySQL Workbench & Database Setup
10:53
Database Users & Privileges
05:59
Connect With PDO
07:20
Fetch Multiple Records
11:06
Fetch Single Record
08:56
Create Form & Insert Record
07:34
Delete Records
10:15
Edit Form & Update Records
11:14

Workopia Project Start & Custom Routing

12 lectures
Project Intro
07:15
Project Repo Link
00:11
UI Theme Files
05:41
Folder Setup
02:34
Home View & Set Document Root
11:57
Git Setup & Commit
04:31
Split UI Into Partials
15:36
Inspect Helper Functions
04:32
Create a VERY Basic Router
11:39
Create Views
06:43
Separate Router Files
04:31
Router Refactor To Class
22:15

Database Class, Fetch & Display Listings

7 lectures
Section Intro
00:51
Project Database Setup - MySQL Workbench
16:48
Database Class & Connection
10:06
Query Method & Fetch Listings
08:59
Pass Data To View
14:14
Single Listing & Named Params
10:58
Single Listing Display
04:25

Namespaces, Controller Classes & Router Refactor

10 lectures
Section Intro
01:36
Folder Structure Refactor
04:13
Custom Autoloader
03:55
Composer & PSR-4 Autoloader
05:11
Namespaces
05:02
Router Refactor For Controller Classes
11:30
Controller Classes - Home & Listings
08:24
ErrorController Class
08:00
Handling Route Params
22:41
Section Wrap
02:30

Create, Update & Delete Listings

9 lectures
Section Intro
01:08
Validation Class
12:35
Form Submission & Sanitizing Data
10:50
Implement Validation
10:16
Insert Listings Into Database
15:06
Delete Listings
09:51
Flash Messages
08:54
Edit Form
07:47
Update Listing
19:36

Authentication, Authorization & Sessions

12 lectures
Section Intro
01:26
User Controller & Views
09:54
Register Validation & Error Partial
12:38
Register User
11:33
Session Class & Set User
15:46
Dynamic Navbar Links
05:03
Logout & Clear Session
04:36
Login Functionality
13:37
Authorize Middleware
13:58
Delete Authorization
12:36
Flash Message Methods
12:00
Update Authorization
05:51

Final Touches & Added Content

2 lectures
Section Intro
00:35
Listing Search Functionality
17:28

Project Deployment - Hostinger

5 lectures
Hostinger Intro
02:40
Hosting & Domain Setup
03:30
Database Export - Local
05:07
Database Import - Production
03:29
Upload Website & Configure Files
08:59

Wrap Up

1 lectures
Course Wrap Up
02:08

Đánh giá của học viên

Chưa có đánh giá
Course Rating
5
0%
4
0%
3
0%
2
0%
1
0%

Bình luận khách hàng

Viết Bình Luận

Bạn đánh giá khoá học này thế nào?

image

Đăng ký get khoá học Udemy - Unica - Gitiho giá chỉ 50k!

Get khoá học giá rẻ ngay trước khi bị fix.