Simplifying API Integration with Laravel's Http Facade
I’ve been working a lot lately integrating third-party APIs. There are several different approaches to this such as using the third-party provided SDK. However, I feel sticking to Laravel’s Http facade is often a better choice. By using the Http faca...
seankegel.com13 min read
Lars Schröder
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?