/google-sign-in-with-php

Use Google Account to log in to system (as a social media login) by creating google developer console's project

Primary LanguagePHP

Steps to create google-sign-in-with-php

  1. Go to Google Developer Console and create new project.
  2. After creating project, get the OAuth credentials
  3. You can get your Client ID and your client secret key. You have to copy both keys for future use in any PHP project.
  4. Now, Download / Install PHP Google API client library using composer require google/apiclient:"^2.0"
  5. Update your credentials in config.php.
  6. Run this code, it will login/logout with google account

Refer below link for more detailed procedure

https://www.thapatechnical.com/2020/04/login-with-google-account-using-php_4.html