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

https://github.com/bankole2000/php-rest-jwt

β­οΈπŸ” SPA implementation of RESTful User Authentication with PHP, MySQL and JWT
https://github.com/bankole2000/php-rest-jwt

Last synced: 4 months ago
JSON representation

β­οΈπŸ” SPA implementation of RESTful User Authentication with PHP, MySQL and JWT

Awesome Lists containing this project

README

          

# PHP REST API with JWT Auth

β­οΈπŸ” An SPA implementation of RESTful API with PHP, MySQL and JWT Authentication - [View Documentation](https://github.com/bankole2000/php-rest-jwt/blob/master/README.md)

[![Practice](https://img.shields.io/badge/Practice-PHP-purple.svg)]()

_

"**Hey!** Hold it right there big guy... Where do you think **you're** going?
I'm gonna need to see some ID..."_ πŸ”’



## What it is

A simple, well-commented, learning oriented, basic Restful API with JWT Auth implementation for User access Management. Built with:

- PHP 🐘
- MySQL
- JWT
- Bootstrap 4
- JQuery
- Html
- CSS

## :electric_plug: What it does
Features 1 basic resource - **Users** and API endpoints to handle basic User Requests;
- _Post_ Register a new User and Generate JWT
- _Get_ Get User Data for updating on Account Page
- _Update_ user Account on Account Page
* πŸ™Ž User Authentication
* πŸ”Protected Routes
* πŸ“ƒHandling Multiform data

## πŸ’‘Learning Points

- JWT Authentication
- Handling Different Method types in JQuery Ajax
- API Documentation

## Some cool stuff

I'll gist about this later... but it's coming alright...

```php
/* Some Php code will be here... It's just classes
mostly */
```

> Also (Just a sidenote), I personally find this a lot easier to understand and build than `NodeJS` & `Express` APIs.

## Features in Development
Some Ideas in my head:

* πŸ’» Refactoring in ES6 instead of jQuery (Using `Fetch` & `Async Await`)
* βš›οΈ Front-End Implementation with `React`, `Vue` or `Angular`
* πŸ“· Handling File and Image Upload (User profiles etc)

## Contribution

Contributions are highly welcome. Feel free to fork, clone, make pull requests, report issues etc.

## Acknowledgments
- Many thanks to the [Code of a Ninja](https://www.codeofaninja.com) ❀️😎 website for such a cool tutorial (among many others)
- Thanks to [@torvalds](https://github.com/torvalds) πŸ™ For Making the world a better place
- And To anyone reading this... _You're awesome!_ πŸ‘Š

That being said
_

Adieu, Come with me, let us go to the world of back end tokens and be RESTfully authenticated_ πŸ•ΊπŸ”πŸšͺ πŸ˜„