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
- Host: GitHub
- URL: https://github.com/bankole2000/php-rest-jwt
- Owner: Bankole2000
- Created: 2019-11-11T14:52:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-06-22T15:37:21.000Z (about 5 years ago)
- Last Synced: 2025-12-29T17:53:43.960Z (7 months ago)
- Language: HTML
- Size: 106 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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)
[]()
_
"**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_ πΊππͺ π