PHP for Beginners 2021 Part 3: How to Create a Website Login

Allow login to your website using a Google account. Every Line of code explained. Use the Google API. Retrieve user data

COURSE UPDATED REGULARLY and is therefore up-to-date with current screen recordings!  You will see exactly what to press and where to go.

What you’ll learn

  • You will be able to create a Google login script that allows a user to use their Google login credentials to access secure pages on your website..
  • You will learn how to use Composer to install the Google API library.
  • You will learn how to create a Google login button and login script.
  • You will learn how to retrieve a Google Auth URL.
  • You will learn how to secure a page based on a Google token.
  • You will learn how to retrieve a user’s data from Google.
  • You will learn how to store user data in a session.
  • You will learn how to access the Google Developer Console.
  • You will learn how to use Bootstrap to style the output.

Course Content

  • Introduction –> 1 lecture • 2min.
  • Setting up the PHP coding environment –> 2 lectures • 9min.
  • Starting to code the Google Login files –> 9 lectures • 34min.
  • Where to next? –> 1 lecture • 6min.

PHP for Beginners 2021 Part 3: How to Create a Website Login

Requirements

  • Knowledge of HTML and PHP although each line is explained. If you are comfortable with basic PHP then you should be OK..
  • Access to a remote PHP enabled server (or use CodeAnywhere free for 7 days).
  • An internet connection.

COURSE UPDATED REGULARLY and is therefore up-to-date with current screen recordings!  You will see exactly what to press and where to go.

Would you like to allow users to login to your website using their Google login credentials?

Would you like to learn how the Google login API process works?

In this short course I explain every single line as I show you how to implement a Google API login script for your website.

You will learn how to:

  • install the Google API library using Composer or a zip archive
  • use the Google Developer console
  • use the Open Auth scopes
  • create a Google login button
  • retrieve a unique authorisation URL from Google and attached it to a button using javascript
  • implement the login scripts
  • create a Google authorisation token
  • create sessions and store user data in them
  • create a secure page
  • retrieve user data from Google
  • present user data
  • create a log out script
  • revoke a Google user token
  • use Bootstrap to quickly style a table

Join the course today and you could have your own Google login working in under 1 hour!

 

THE DEVELOPMENT ENVIRONMENT

IMPORTANT: Please read carefully

In order to use the Google API you need to have a secure server certificate installed on the development environment.  I will be using CodeAnywhere throughout this course. It is free to use for the first 7 days and is limited to 2 hours per day. After that you need to pay.  Feel free to use CodeAnywhere or any other online development environment.

 

MY PROMISES TO YOU

As a registered teacher (yes, I teach in a real classroom every day), I strongly believe it is my job to ensure you feel totally supported when taking my classes. I therefore promise the following:

  • to respect you as a student and individual with your own learning needs
  • to be courteous and polite in our interactions
  • to answer your questions about the course content promptly
  • to fix any issues you may encounter with the lessons
  • to respond promptly to feedback

I really do look forward to welcoming you to this course. I am confident you will enjoy the approach of learning what each line of code actually means.

Join the course today.

 

Get Tutorial