pondit / jwt
Requires
- php: ^7.2
- firebase/php-jwt: ^5.0
- swiftmailer/swiftmailer: @stable
This package is auto-updated.
Last update: 2025-06-17 21:14:08 UTC
README
About Pondit JWT
A simple library to encode and decode JSON Web Tokens (JWT) in PHP, conforming to RFC 7519.
How to use
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)
Contributing
Thank you for considering contributing to the Pondit JWT!
Security Vulnerabilities
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.
License
The Pondit JWT is open-source software licensed under the MIT license.