Special offers now — see discounted courses.
day
:
hour
:
min
:
sec
See special offers
Building APIs in PHP Using the Slim Micro Framework

Building APIs in PHP Using the Slim Micro Framework

1h 53mIntermediate2016-10-10

Authors

Keith Casey

Keith Casey

Software development and project management

Course details

A well-designed API includes not just URLs and response codes but also authentication, consistent structures, and useful JSON payloads. Luckily, the Slim micro framework makes it easy to move an API from concept to implementation to production. What used to take weeks or even months can usually be done in hours or days with Slim.

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 Slim. 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.

Learning objectives
Understanding the project goals
Setting up the database
Adding authentication in Slim
Using cross-framework and authentication middleware
Creating a read-write API in Slim
Uploading files via the API
Adding file security
Creating payloads and response codes in Slim
Scaling your API

Skills covered

SlimPHPAPIsProjectOpen SourceSoftware Development

Concepts

0. Introduction

  • 01 - Welcome
  • 02 - What you should know
  • 03 - Project description and goals
  • 04 - From empty editor to Hello World
  • 05 - Useful tools for this course
  • 06 - Using the exercise files

1. Project Explanation and Goals

  • 07 - Routing and middleware basics
  • 08 - The Request-Response Flow
  • 09 - Routing and parameter fundamentals
  • 10 - Setup the database
  • 11 - Our first middleware component

2. Authentication Options and Tradeoffs

  • 12 - Authentication options and tradeoffs
  • 13 - How authentication fits into our APIs
  • 14 - Cross framework middleware
  • 15 - API authentication middleware

3. Create a Read-Write API

  • 16 - Create a read-write API
  • 17 - Content negotiation and content types
  • 18 - Process JSON and response codes
  • 19 - Delete API

4. File Uploads via API

  • 20 - File uploads via API
  • 21 - Manage files safely and securely
  • 22 - Design JSON payloads for APIs
  • 23 - Process file uploads via API
  • 24 - File security and storage in your API
  • 25 - Wire up the file move
  • 26 - Create payloads and response codes for API

5. Scale Your API

  • 27 - Scale your API
  • 28 - Manage complex API routes
  • 29 - Implement versioning in your API

Conclusion

  • 30 - Next steps

About us

LyndaKade is a leading learning platform that helps people learn business, software, technology, and creative skills to achieve personal and professional goals.

Phone numberAparat ChannelTelegram SupportTelegram ChannelInstagram Page

All rights to this site belong to LyndaKade.

Terms of Service|Privacy Policy

نماد الکترونیک enamad در صورت اتصال با آی‌پی داخل کشور، نمایش داده خواهد شد.
logo-samandehi - لوگو ساماندهی
Zarinpal
Zibal