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.
Robs 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, leravraging the middleware pattern
- 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.