SkillAgentSearch skills...

MiniAuth

MiniAuth is a minimalist, secure backend authentication system built with pure PHP and SQLite. It uses JWT tokens to protect API endpoints and offers a clean, modular structure ideal for small projects, prototypes, or educational use.

Install / Use

/learn @MuradIsazade777/MiniAuth

README

🔐 MiniAuth – Lightweight PHP JWT Authentication API

License Built with PHP Status
SQLite

MiniAuth is a minimalist, secure backend authentication system built with pure PHP and SQLite. It uses JWT tokens to protect API endpoints and offers a clean, modular structure ideal for small projects, prototypes, or educational use.

🚀 Features

  • ✅ Register & Login endpoints
  • 🔐 JWT token generation and validation
  • 🗂️ SQLite-based user storage
  • ⚡ Fast, lightweight, no frameworks
  • 📁 Modular file structure (6–7 files, ~70 lines of code)

📦 Requirements

  • PHP 8+
  • SQLite enabled (pdo_sqlite)
  • Git Bash or any terminal with PHP CLI

🧪 API Endpoints

🔐 Register

POST /register
Content-Type: application/json

{
  "username": "murad",
  "password": "123456"
}
🔑 Login
http
POST /login
Content-Type: application/json

{
  "username": "murad",
  "password": "123456"
}

👤 Profile (Protected)

GET /profile
Authorization: Bearer <JWT_TOKEN>
🛠️ Run Locally
bash
php -S localhost:8000
Test with curl or Postman.

📄 License This project is licensed under the MIT License. See LICENSE for details.

✨ Author Murad Isazade Backend Architect & Full-Stack Developer

🌟 Star this repo if you find it useful!

View on GitHub
GitHub Stars27
CategoryData
Updated1mo ago
Forks0

Languages

PHP

Security Score

80/100

Audited on Feb 17, 2026

No findings