Skip to content

Bankole2000/php-rest-jwt

Repository files navigation

PHP REST API with JWT Auth

⭐️🔏 An SPA implementation of RESTful API with PHP, MySQL and JWT Authentication - View Documentation

Practice

"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

🔌 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...

/* 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 ❤️😎 website for such a cool tutorial (among many others)
  • Thanks to @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 🕺🔏🚪 😄

About

⭐️🔏 SPA implementation of RESTful User Authentication with PHP, MySQL and JWT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published