A simple PHP native login and user management system with role-based access control.
- Login, Logout, Register
- User roles:
User
,Admin
,Superadmin
- Ban/Unban users
- Delete users (with privilege check)
- Role-based access restriction using
Session::authorize()
- Centralized layout system (navbar + content include)
- PDO + Secure password hashing
- PHP (Native)
- MySQL (PDO)
- Bootstrap 5
- Laragon (for local dev)
-
Clone the repo:
git clone https://github.com/<username>/php-slogin.git
-
Import the SQL file to your database.
-
Update config/database.php with your DB credentials.
-
Run locally using Laragon or XAMPP.