Building a Secure API - Part 2

Take the first steps into using Slim to create a secure API

Building a secure API doesn't have to be difficult if you build it that way from the start. This course will guide you through the creation of a simple REST API that could be used for a new application or to add on to an existing one. Secure thinking is an important part of any development.

In the first course in the series I introduced some of the basics about the API we'll be building. In this second course we'll start in on the code, taking the first steps with the Slim Framework and setting up our environment.

Topics covered include:

  • Installing Slim via Composer
  • Creating custom error handlers
  • Throwing and handling exceptions as errors
  • Returning JSON output

If you haven't taken our free course that's the first part of this series, I highly suggest it before taking this course.

Your Instructor

Chris Cornutt
Chris Cornutt

For the last 12+ years, Chris has been involved in the PHP community in one way or another. These days he's the Senior Editor of, lead author for, a site dedicated to teaching developers about security, and the Securing PHP project. He's also written for several PHP publications and has spoken at conferences in both the U.S. and Europe on security-related topics. He's also an organizer of the Dallas PHP User Group and the Lone Star PHP Conference and works as an Application Security Engineer for Duo Security.

Course Curriculum

  Welcome to Part 2!
Available in days
days after you enroll
  Installing and Using Slim
Available in days
days after you enroll
  Custom Handler Configuration
Available in days
days after you enroll
  One Last Thing...
Available in days
days after you enroll

Frequently Asked Questions

When does the course start and finish?
The course starts now and never ends! It is a completely self-paced online course - you decide when you start and when you finish.
How long do I have access to the course?
How does lifetime access sound? After enrolling, you have unlimited access to this course for as long as you like - across any and all devices you own.
What if I am unhappy with the course?
We would never want you to be unhappy! If you are unsatisfied with your purchase, contact us in the first 30 days and we will give you a full refund.

Get started now!