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
Price: $60
30-Day Money-Back Guarantee
  • 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
  • How to set up local environment (wamp, xampp, mamp, homestead)

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
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

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

Session component under test

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


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


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


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

Cookie component

It's time to unit test our Cookie component.

Cookie component under test

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
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

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

User under test (Part 1)

Continuing with the unit tests started in the previous episode.

User under test (Part 2)
2 Lectures 29:26

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

Guard class

It is now time to test our authentication component.

Guard under test
Validation component
3 Lectures 46:11

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


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

Validator rules

It's time to unit test our validator component.

Validator under test
9 Lectures 02:44:36

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

Abstract Controller

Login controller is responsible for authenticating users.

Login Controller

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

Register controller

To send notification we will code the Mail component.

Mail component (Part 1)

In this episode we continue coding our Mail component.

Mail component (Part 2)

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

Smtp transport

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

Account activation

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

Forgot Password

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

Reset password
1 Lecture 21:37

In this episode we will do some refactoring.

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.