Create a PHP REST API - Write a RESTful API from Scratch Using Plain, Object-Oriented PHP and MySQL

Create a PHP REST API - Write a RESTful API from Scratch Using Plain, Object-Oriented PHP and MySQL

Dave Hollingworth via YouTube Direct link

List all records

19 of 34

19 of 34

List all records

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

Create a PHP REST API - Write a RESTful API from Scratch Using Plain, Object-Oriented PHP and MySQL

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Introduction
  2. 2 API client
  3. 3 Front controller
  4. 4 RESTful endpoints
  5. 5 URL rewriting
  6. 6 HTTPie usage
  7. 7 Routing
  8. 8 404 response
  9. 9 Collection and resource URLs
  10. 10 Controller class
  11. 11 Class autoloading
  12. 12 Process the request
  13. 13 Collection requests
  14. 14 JSON Content-type
  15. 15 Create the database
  16. 16 Connect to the DB
  17. 17 Exception handling
  18. 18 Table gateway class
  19. 19 List all records
  20. 20 Encode JSON values
  21. 21 Insert a record
  22. 22 Get request data
  23. 23 201 response
  24. 24 Error handling
  25. 25 Data validation
  26. 26 422 response
  27. 27 405 response
  28. 28 Resource requests
  29. 29 Get a resource
  30. 30 404 response
  31. 31 Update a resource
  32. 32 Conditional validation
  33. 33 Delete a resource
  34. 34 Summary

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.