Award Confetti logo-bs logo-dxn logo-odl Magento Piggy Bank 09AEAE68-D07E-4D40-8D42-8F832C1A04EC 79C8C7E9-0D9D-48AB-B03B-2589EFEE9380 1A734D92-E752-46DD-AA03-14CE6F5DAD57 E622E2D4-3B9C-4211-8FC3-A1CE90B7DFB2 Group 19

PHPMinds Meetup with Rob Allen

Last night JH had the pleasure of hosting the first of many PHPMinds Nottingham meet-ups. PHP developers from around Nottingham turned up to be enlightened by world class speaker Rob Allan.

Rob’s talk covered how Slim 3 builds on PSR-7 HTTP message interfaces to provide a solid foundation to create your APIs. Delving into topics such as the HTTP 1.1 standard, PSR-7, leveraging the middleware pattern.

Take Aways:

  • PSR7 is the future
  • Version your API
  • Set the correct status codes on your response
  • Return the requested response type

Slim 3 builds on the PSR-7 HTTP message interfaces and provides useful features such as routing, and a DI container. It’s very lightweight and so is an ideal platform for building microservice APIs.

In this talk, we’ll look at how to use Slim 3 as the basis for your API and build a fully featured API by leveraging Slim’s Middleware system. We’ll cover the key concepts around HTTP request-response resource APIs including handling accepting and generating the correct content type for returned data, authentication and also returning errors appropriately.

By the end of this session you will be well placed to write your own APIs with Slim 3.