Building Modern APIs in Expressive

Rob Allen (08.Feb.2018 at 09:00, 3 hr )
Workshop at SunshinePHP 2018 (English - US)

Rating: 4 of 5

Modern applications increasingly require an API, whether to support rich client-side experiences, mobile apps, or to integrate with other systems, and PHP is evolving to be an excellent tool for this job. This tutorial will cover the fundamentals of building a really excellent and robust API in PHP including how to handle media types, authentication and errors appropriately. We'll use Expressive since it uses the PSR-7 HTTP message interfaces, includes routing and a dependency injection container, and combined with its elegant middleware patterns it makes a very lightweight but solid foundation for our project. During the session you will build your own simple, working API and gain the skills that you can take back to the office to implement APIs of all kinds.

Who are you?

Claim talk

Talk claims have been moved to the new site.

Please login to the new site to claim your talk

Comments closed.


Rating: 3 of 5

08.Feb.2018 at 15:45 by Alexandra Brown (12 comments) via Web2 LIVE

This was a great talk to learn about up-to-date PHP frameworks. A lot of the principles were directly applicable, but I found some of the implementation and syntax not needed. I think that would've helped for the timing as well since we ran out of time. Overall, good concepts were covered.

Rating: 4 of 5

08.Feb.2018 at 18:27 by Trent Harvey (8 comments) via Web2 LIVE

Information was useful and current. Easy to understand and follow along. A good primer for anyone new to APIs or a good comprehensive review of fundamentals for someone experienced writing APIs in modern frameworks.

Rating: 4 of 5

09.Feb.2018 at 15:32 by Mark Niebergall (120 comments) via Web2 LIVE

Rob did a great job explaining Expressive and showed lots of good code examples. Having used Expressive already, it was interesting to hear his perspective and explanation about Expressive and how it works and why. The coding activities were good. I would have liked to gone more into leveraging middleware through multiple layers and discussing the impact middleware has with MVC and architecture. Great tutorial.

Rating: 4 of 5

09.Feb.2018 at 16:01 by Andres Orav (6 comments) via Web2 LIVE

Great presentation about Expressive, got me interested :) Sad, that we ran out of time.

Rating: 4 of 5

10.Feb.2018 at 13:39 by Andrew Garfield (2 comments) via Web2 LIVE

I have a moderate amount of experience with implementing and building APIs but I still came out of this tutorial having learned plenty of new ideas and tips. To me, this is a mark of a successful presentation.

I appreciate that all of the prerequisite code came with a vagrant file. I was basically able to walk in to the tutorial and be run and running in with a perfect environment within minutes.

That being said, there was a lot of content to cover and the time to complete some of the exercises was inadequate. I would suggest for future tutorials to reduce down the slides and even in amount of exercises to allow greater concentration on less content.

© 2019