Build a REST API with PHP Course

Go to class
Write Review

Free Online Course: Build a REST API with PHP Course provided by Treehouse is a comprehensive online course, which lasts for 1-2 hours worth of material. The course is taught in English and is free of charge.

Overview
  • Build a REST API using the Slim Microframework.

    What you'll learn

    • REST APIs in Slim

Syllabus
  • CRUD API in Slim

    In this course, we’re going to take on the task of building a REST API in PHP. Even if you've never used an API before, the good news is that all applications function in the same way. They take in a request and return a response. When building a web application, that response is returned in an HTML format. When building a REST API, that response is most often returned in a JSON format. We'll be using the Slim framework to manage our code and a SQLite database to manage our data.

    Chevron 7 steps
    • Getting Started with Our API

      3:49

    • Setting up Our Application

      5:49

    • API Basics

      9 questions

    • Accessing Data

      4:53

    • Adding CRUD Operations

      5:17

    • instruction

      Review Class

    • Data

      6 questions

    Endpoints and Routing

    Endpoints and routing

    Chevron 6 steps
    • Endpoints

      4:51

    • Endpoints

      6 questions

    • Route Groups

      4:46

    • Testing Requests

      5:48

    • instruction

      Review CUD routes

    • Routing Requests

      6 questions

    Errors and Exceptions

    Errors and Exceptions

    Chevron 6 steps
    • Better Errors

      4:20

    • Throwing Exceptions

      6:12

    • Error Reporting

      5 questions

    • instruction

      Review Exceptions

    • All the Rest

      3:23

    • Additional Concepts

      5 questions