This is a simple implementation of a simple RESTful API with JWT Auth in PHP with the help of SLIM microframework . This repo contains two folders, one without JWT auth, and one with JWT.
Steps to implement JWT authentication:
- Import SLIM microframework (https://github.com/slimphp/Slim) and JWT Support Library by Firebase (https://github.com/firebase/php-jwt).
- Put them in 'libs' folder.
- Just have a look at the comments in the code! :D