Learn how to build APIs using Silex. Go from concept to implementation in days, not months, with this efficient PHP micro framework.
- [Instructor] Hello, and welcome to Building APIs in Silex. In this course, we'll start from a simple API specification, and begin building a useful API. We'll talk about everything from Euro routes, and Validating Input, to generating HTTP response codes, and Hypermedia Payloads. Now generally, most developers will try to do this in one big step, going from no API whatsoever, to a complete solution that solves every imagined problem. In my experience, that never works. First, there are requirements and information, that you just don't have at the beginning of the project.
But more importantly, your own understanding of the underlying problem, and the tools available improves over time. Therefore, we're going to approach this project the same way I recommend you approach every project. Iteratively.
This course begins with a simple application specification and builds it one step at a time. Each chapter includes a key concept, with examples from other public APIs, and then shows how to build it yourself with Silex. Learn about URL routing, validating input, and generating response codes and hypermedia payloads. Like any project, the first implementation may be a little messy, but don't worry. The last chapter covers refactoring and what it takes to scale and support the API going forward.
- Understanding the project goals
- Adding authentication with Silex
- Using cross-framework and authentication middleware
- Creating a read-write API in Silex
- Uploading files via an API
- Adding file security
- Creating payloads and response codes in Silex
- Scaling your API