we all know 'how people are lazy nowadays'. they don't want to fill any form on websites like login, signup, contact. therefore we find a solution for the web developer or a blogger who uses the sign-in form. more than 80% of internet users use social media. 
     so today we are here for making a login with google function in a website, you can also say this signup with google.

why choose google?

there are various reasons for choosing google for signing.

 security of google

one of the biggest reasons for choosing a login with google button for our website is the security of Google because Google is the most popular and reliable platform for millions of internet users and it is so popular because of its security and reliability. therefore the users will sign in in your website without any worry.and they also can trust on your website.

password-less
Google login is a fully password-less procedure, therefore, users love to create an account on your website. also, people can not remember all different passwords so they will definitely create an account on your website using google login.

too quickly
login with google procedure is too quickly, therefore, a low-speed internet user can also create an account on your website and also all your website users can create their account within seconds.

importance of google login
The importance of google signup is too impressive for users because they think that your website is connected with Google and they have already trusted on google so they can understand that your site is real. using this sign-in method you can also improve your website loading speed because of loading speed meters in google ranking and also it will save your visitors time to fill a form and create an account so they can use their time on any other things.


steps to integrate login with google

firstly go to the google API console here

give a project name and create a new project
google login

when you have successfully created your new project then click on ENABLE APIS AND SERVICES
now choose Google + API and click on enable
google login


an error will come and it says that you need to create credentials for this click on create now
now give the Authorized redirect URIs
it means where you want to redirect your users after sign in

one option will be open in your front saying create an OAuth consent screen then click on create
give all details with your according and 'save'.
login with google

this type of message will open in front of you
save this for later
now the last step is to download this zip file and extract in your pc
now open a file name gpConfig.php
setApplicationName('your application name'); $gClient->setClientId($clientId); $gClient->setClientSecret($clientSecret); $gClient->setRedirectUri($redirectURL); $google_oauthV2 = new Google_Oauth2Service($gClient); ?>
now make some changes with your accordingly
 save the file and upload on your website and enjoy the Google login system,