Authentication component with PHP
0.0 (0 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
5 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Authentication component with PHP to your Wishlist.

Add to Wishlist

Authentication component with PHP

Learn how to code the component that will allow you to restrict access to the designated sections of your website
0.0 (0 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
5 students enrolled
Last updated 1/2017
English
Price: $60
30-Day Money-Back Guarantee
Includes:
  • 8 hours on-demand video
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Create a registration, login and reset password forms
  • Restrict access to pages based on the user authentication
View Curriculum
Requirements
  • How to set up local environment (wamp, xampp, mamp, homestead)
Description

What you will learn

In this course we will be learning how to build a simple framework with the authentication modules including:

  • Registration
  • Login
  • Forgot and reset password
  • Restrict access to designated sections of the website

Who is this course for

This course is for Intermediate users, who have a good understanding of the basic concept of PHP programming.
During this course we will also write unit tests using PHPUnit in order to ensure our components work the way they supposed to.

What do you need to know

To build our authentication component we will use Object Oriented PHP and some packages available via composer such as illuminate/http, illuminate/support, illuminate/database, nesbot/carbon, swiftmailer/swiftmailer etc.

To be able to complete this course, you have to have a good understanding of PHP fundamentals and be familiar with Object Oriented PHP. You will also need to have your virtual environment set up with either Apache or Nginx and MySQL / MariaDB database.

Who is the target audience?
  • This course is for beginner / intermediate php programmers
Compare to Other PHP Courses
Curriculum For This Course
29 Lectures
07:57:07
+
What we are going to be working on
2 Lectures 14:41

Learn about what you'll be able to build during this course as well as all pre-requisites.

Preview 02:03

First step is to set up our local environment and install the exercise files.

Preview 12:38
+
Core components
9 Lectures 02:14:24

We will start by setting environment variables and begin work on our Session manager component.

Preview 16:24

In this episode we will code two session drivers - FileSession and ArraySession.

Session drivers
14:56

In this episode we will write unit tests our session component.

Session component under test
15:33

In this episode we will create the Kernel class, which will boot our application.

Kernel
13:57

In this episode we will code the App class, which will be responsible for communication between the controller and the view.

Application
18:19

In this episode we will create our super controller and the first controller responsible for handling 404 status.

Controller
16:51

Cookie component will be responsible for handling all cookie related interactions.

Cookie component
16:20

It's time to unit test our Cookie component.

Cookie component under test
08:11

Migrations allow us to store the schemas for our database table structures and easily re-use them whenever we need to move the site to a new host without necessity of copying sql files.

Database Migration
13:53
+
User model
3 Lectures 01:06:12

In this episode we will program the User model class using Eloquent (Laravel's Object Relational Mapper)

User class
27:38

In this episode we will set up test environment to interact with database and write first couple of tests.

User under test (Part 1)
26:11

Continuing with the unit tests started in the previous episode.

User under test (Part 2)
12:23
+
Guard
2 Lectures 29:26

All our authentication methods will be kept in the class called Guard.

Guard class
17:12

It is now time to test our authentication component.

Guard under test
12:14
+
Validation component
3 Lectures 46:11

Validator class will be used to validate user submitted data using the web form.

Validator
19:02

To validate different data type we need to specify the rules, which our Validator component will make use of.

Validator rules
12:53

It's time to unit test our validator component.

Validator under test
14:16
+
Controller
9 Lectures 02:44:36

First we need to code an abstract controller, which other controllers will inherit from.

Abstract Controller
12:32

Login controller is responsible for authenticating users.

Login Controller
28:22

Before we can authenticate the user we need to allow them to register.

Register controller
25:33

To send notification we will code the Mail component.

Mail component (Part 1)
27:41

In this episode we continue coding our Mail component.

Mail component (Part 2)
13:16

Our Mail component makes use of the SwiftMailer and the SMTP transport.

Smtp transport
12:46

In this episode we cover the activation of the account after the user has registered.

Account activation
15:18

Forgot password module allows users to submit the reset password request.

Forgot Password
14:53

In this episode we'll learn how to provide functionality that resets user's password.

Reset password
14:15
+
Refactoring
1 Lecture 21:37

In this episode we will do some refactoring.

Refactoring
21:37
About the Instructor
Sebastian Sulinski
4.5 Average rating
197 Reviews
1,170 Students
13 Courses
Founder of SSD Tutorials

A passionate web developer with over a decade experience in web industry.

Founder of SSD Tutorials, where he publishes his free and premium tutorials on how to build modern web applications.

Currently living and working in United Kingdom as a Senior Web Developer for one of the companies in West Sussex.