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
- Host: GitHub
- URL: https://github.com/techiediaries/php-jwt-authentication-example
- Owner: techiediaries
- Created: 2019-04-27T16:52:31.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-27T18:42:07.000Z (about 7 years ago)
- Last Synced: 2025-04-15T04:33:41.440Z (about 1 year ago)
- Language: PHP
- Homepage: https://www.techiediaries.com/php-jwt-authentication-tutorial/
- Size: 6.84 KB
- Stars: 13
- Watchers: 1
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```