PHP API Pro: Content Negotiation using Middleware and Enums

Опубликовано: 01 Январь 1970
на канале: Gary Clarke
1,189
80

This is the second live coding session to accompany the PHP API Pro course. In this session I'll create PSR15 middleware which leans on enums to handle content negotiation by checking the request accept header in order to serve content in the requested format. I'll also show you a really cool refactoring hack 😉

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  

📝 Check out this PHP blog by Timothy Iloba
  / timothyiloba  

💕Show support:
https://www.paypal.com/donate/?hosted...