Actually iam a new PHP Learner, i developed an web app using Bootstrap, PHP, Mysql. Now i want to give login access for gmail id's which are already existed in my database, so i used login with google API, but want deny login access for any other gmails which are not existed in my database.

You want's login with google funcationality in your app. This is done by Google Contacts API and OAuth authentication. I searched and provide a tutorial for you to consult for this topic - Tutorial: Google Contacts API Version 3.0 & OAuth 2.0

Thank you.

commented: Link is not relevant -4

You can do this with Google's OAuth 2.0 API. Daniel11 seems to be going around linking to tutorials on his own website, but in this case, it's not entirely applicable because you're looking for information on doing it in PHP, and Daniel's tutorial implements C#.NET. Additionally, it talks about the Contacts API, which I think is not the one you want. You want the Google Sign-In platform, as so:

https://developers.google.com/identity

https://developers.google.com/identity/protocols/OAuth2

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.