This is the first live coding session to accompany the PHP API Pro course. In the session I'll create routes and handlers for retrieving single flights and collections of flights from the API. We'll also consider what our response content (representation) should look like when we serialize it as well as discussing other things.
You can check out the full course (and grab a BIG DISCOUNT on release) here:
https://www.garyclarke.tech/p/php-api...
Here is the repo for the API:
https://github.com/GaryClarke/php-api...
🆓 Join garyclarke.tech for course DISCOUNTS and a FREE Docker + PHP course (worth $49)
https://www.garyclarke.tech
👇 Follow me on Social Media:
Twitter: / garyclarketech
Linkedin: / garyclarketech
💕Show support:
https://www.paypal.com/donate/?hosted...
I got ChatGPT to write a poem to accompany this stream...you're welcome 😝
In a world of code and digital streams,
Where data flows like endless dreams,
PHP whispers in soft, rhythmic tones,
Crafting a web where knowledge roams.
In the dance of bytes and RESTful plays,
APIs weave through the virtual maze,
Each request a beat, a harmonious song,
In the vast network, where they belong.
Elegant routes, like pathways clear,
Guide the data, drawing it near,
Controllers stand, guardians of the gate,
Deciphering queries that patiently wait.
Here in this realm of logic and light,
Where algorithms dance far into the night,
A symphony of code, a beautiful sight,
In the vast expanse of the digital night.