Web Development Private On-Demand

Building REST APIs with PHP Slim (PHP650)

4 hours

Building REST APIs with PHP Slim is a practical course for developers who want to move from consuming APIs to designing and building their own.

Register or Request Training

  • Private class for your team
  • Live expert instructor
  • Online or on‑location
  • Customizable agenda
  • Proposal responses same day as request
Price per student
$49.95 or 1 voucher
  • On-Demand 24/7
  • Readings, Video Presentations, Exercises
  • Quizzes to knowledge check
  • Life-Time Access

Course Overview

Building REST APIs with PHP Slim is a practical course for developers who want to move from consuming APIs to designing and building their own. You’ll review core REST concepts, learn how to represent and identify resources with JSON, use HTTP status codes effectively, and design clear, consistent API endpoints.

Through hands-on exercises, you’ll install PHP Slim and build a working API that handles request and response data, connects to a database, and supports common CRUD operations. You’ll also create a frontend that communicates with the API using Fetch, work with query parameters, implement POST, PUT, and DELETE endpoints, and add error handling for more reliable applications.

Course Benefits

  • Design REST API endpoints around clearly defined resources and operations.
  • Represent API resources with JSON and use HTTP status codes to communicate request outcomes.
  • Set up PHP Slim and create endpoints for a REST API.
  • Work with request and response data in PHP Slim applications.
  • Connect an API to a database and implement read and write operations.
  • Build CRUD functionality using POST, GET, PUT, and DELETE endpoints.
  • Use query parameters to control and refine API requests.
  • Create a Fetch-powered frontend that sends data to and retrieves data from an API.
  • Implement error handling to provide clearer and more reliable API responses.
  • Practice building an end-to-end REST API through hands-on PHP Slim exercises.

Delivery Methods

Private Class
Delivered for your team at your site or online.
On-Demand
Learn at your own pace with 24/7 access.

Course Outline

  1. Designing REST APIs
    1. Review of REST APIs
    2. From Consumer to Builder
    3. Representing Resources with JSON
    4. Identifying and Naming Resources
    5. Using Status Codes to Determine Outcome
    6. Designing Your API Endpoints
  2. Building Your First PHP Slim API
    1. Why PHP Slim?
    2. Installing PHP Slim
    3. Your First Endpoint
    4. Request and Response Data
    5. Setting Up the Database
    6. Writing to the Database
    7. Reading from the Database
  3. CRUD and a Fetch-Powered Frontend with PHP Slim
    1. Setting Up the Frontend
    2. Posting Data
    3. Query Parameters
    4. Fetching Data
    5. PUT and DELETE Endpoints
    6. Error Handling in PHP Slim

Class Materials

Each student receives a comprehensive set of materials, including course notes and all class examples.

Class Prerequisites

Experience in the following is required for this PHP class:

  • Basic proficiency with PHP.
  • Familiarity with HTML, JavaScript, and JSON.
  • Basic knowledge of relational databases and SQL.

Experience in the following would be useful for this PHP class:

  • Experience consuming REST APIs with tools or applications.

Have questions about this course?

We can help with curriculum details, delivery options, pricing, or anything else. Reach out and we’ll point you in the right direction.