In this video I show off the open source package Saloon, and explain how to install it and use it in PHP or Laravel applications to make integrations with external APIs a more painless process.
You'll learn:
- How to install Saloon in an existing application
- What the Connector and Request classes are
- How to mock and record existing requests
Saloon documentation: docs.saloon.dev
GitHub repo: github.com/sammyjo20/saloon
- 0:00 Intro
- 0:54 Installing Saloon
- 1:35 Creating A Connector
- 3:01 Building A Request
- 4:55 Refactoring Existing Calls
- 18:38 Automatic Pagination
- 24:05 Retry Requests
- 24:51 Mocking and Recording
- 27:44 Wrapping Up
Send me new video ideas and vote on what's coming next: suggest.gg/aschmelyun
Follow me on Twitter! / aschmelyun
Join my newsletter, where I send out new information about twice each month in the PHP, JavaScript, and Docker realms: aschmelyun.substack.com
17 июл 2024