Nice tutorial! I often found myself thinking about the choice between sdk or self implementation when I need to interact with an API. This looks like a clean way 👍🏼
I'm also happy about your test examples because this is often not part of such articles. One detail was not clear to me: You overwrote the config values of the google api inside your tests. I think it would be cleaner to use a .env.test file with this values or set them via phpunit.xml?
Thanks Lars! A .env.test file is a great solution and that’s what I typically use. There’s many ways to do it though and I just wanted to point out that you don’t want your tests making actual requests to the API.
Nice tutorial! I often found myself thinking about the choice between sdk or self implementation when I need to interact with an API. This looks like a clean way 👍🏼 I'm also happy about your test examples because this is often not part of such articles. One detail was not clear to me: You overwrote the config values of the google api inside your tests. I think it would be cleaner to use a .env.test file with this values or set them via phpunit.xml?