A simple library to encode and decode JSON Web Tokens (JWT) in PHP, conforming to RFC 7519.
copy config/constants.example.php to config/constants.php
Database Configuration config/constants.php
define('DB_HOST', ''); define('DB_NAME', ''); define('DB_USERNAME', ''); define('DB_PASSWORD', '');
At first create a users(id, name, mobile_number, email, password, is_active) table to your database. update config/constants.php according your database credential
Available API (Only accept post requests)
domain/register.php
(form data: name, email, mobile_number, password)domain/login.php
(form data: email, password)domain/profile.php
content-type: application/json, Authorization: bearer tokendomain/send_sms.php
(form data: secret_key, mobile_number, message)domain/send_email.php
(form data: secret_key, email, subject, body)
Thank you for considering contributing to the Pondit JWT!
If you discover a security vulnerability within Pondit JWT, please send an e-mail to Dev Team via dev1@pondit.com. All security vulnerabilities will be promptly addressed.
The Pondit JWT is open-source software licensed under the MIT license.