Madison PHP Conference 2014

Saturday, September 13th, 2014

share on

APIs at the Speed of Thought (Matthew Weier O'Phinney)

You need an API: you're doing a new mobile app, or you want to create a developer community around the data you aggregate, or you need to give another division of your company access to your data. Then you start researching APIs, and you get a headache:

  • Content negotiation -- what's that?
  • What are OPTIONS about?
  • How do you authenticate users?
  • What is this OAuth stuff?
  • Do you use JSON or XML?
  • How do users figure out what to do next?
  • How will you implement versioning when it becomes necessary?

In other words, you get stuck in thinking about how to build an API, instead of building out the actual logic and data you need to expose in the first place -- the actual, business critical part of the application! What if you could focus on that, and the API "just happened"? Well, there's an app for that: Apigility!

Apigility is a tool for both describing your API and how it should work, as well as the engine that will expose it. Apigility allows you to plug in your own code, and expose it as an API. In this session, I'll show you what Apigility delivers, while building out an API for uploading and streaming images -- a real-world application, including authentication, validation, versioning, content negotiation, error reporting, documentation, and more -- everything you would expect from a robust, usable API.


Matthew Weier O'Phinney

Matthew is a Principal Engineer at Zend Technologies, and project lead for both Apigility and Zend Framework. He has been using and abusing web technologies since the late nineties, and actively contributing to open source projects for over a decade, primarily in PHP. When not in front of a computer, you’ll find him cavorting with his Basset Hound and family on the plains of South Dakota.