Skip to content

Example REST API authentication using the Slim PHP micro framework. Code to accompany this video: https://youtu.be/v5tAdjf0o3E

License

Notifications You must be signed in to change notification settings

daveh/slim-api-auth-example

Repository files navigation

Slim PHP REST API Authentication, plus Web-based Signup and Login

Source code to accompany this video: https://youtu.be/v5tAdjf0o3E

REST API Authentication with PHP & MySQL | Slim PHP Micro Framework Registration and Login Tutorial

This is a follow-up to this repository: https://github.com/daveh/slim-rest-api-example

Topics covered in the video

  • How to pass API keys to the API: query string and X-API-Key header
  • Using middleware to require an API key
  • PHP templates
  • Signup and login
  • Hashing
  • Encrypting
  • Custom validation with Valitron
  • Session middleware

Complete API course, including authentication: https://davehollingworth.net/phpapisy

Releases

No releases published

Packages

No packages published