Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

aminebenj's avatar

Google api php credentials file with Vapor

Hello,

I use Vapor for my applications, and i want to use google API (Gmail one).

In the doc, they ask to use the path of the JSON credentials to access the API.

Like this: client->setAuthConfig('/path/to/client_credentials.json');

But as I can't give the path on vapor, how can I manage this ?

Here is the link for the Package: https://packagist.org/packages/google/apiclient

And a laravel wrapper : https://github.com/pulkitjalan/google-apiclient

Thank you for your help :)

0 likes
2 replies
aminebenj's avatar

Thank you.

But Zapier is not an option in my cas, as i have to use the library to do actions for users mails. Zapier can't do that.

Also Zapier should can be expensive in some cases.

I prefer to find a proper way to install one of the libraries on Vapor

Please or to participate in this conversation.