Skip to content

techiediaries/php-jwt-authentication-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHP JWT Authentication Example

This is a simple example application that implements JWT Authentication. It exposes three endpoints

  • api/login.php
  • api/register.php
  • api/protected.php

For detailed steps check out this tutorial.

How to Run This App

First clone the repo:

$ git clone https://github.com/techiediaries/php-jwt-authentication-example.git

Next, navigate inside the project's folder and run the following command to start the server:

$ cd php-jwt-authentication-example
$ composer install
$ php -S 127.0.0.1:8000

Releases

No releases published

Packages

No packages published

Languages