Login with Github account via PHP & Mysqli
If you don't have Github OAuth ClientID, just go here to generate yours:
https://github.com/settings/applications/new
Then enter the ClientID & ClientSecret here, and also set your Authorization callback URL:
$clientID = 'Your_Github_OAuth_ClientID';
$clientSecret = 'Your_Github_OAuth_ClientSecret';
$redirectURL = 'Your_Github_Auth_CallbackURL';