An open API service indexing awesome lists of open source software.

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

PHP JWT Authentication Example
https://github.com/techiediaries/php-jwt-authentication-example

Last synced: 10 months ago
JSON representation

PHP JWT Authentication Example

Awesome Lists containing this project

README

          

# 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](https://www.techiediaries.com/php-jwt-authentication-tutorial/).

## How to Run This App

First clone the repo:

```bash
$ 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:

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