Skip to content

πŸ” PHP Auth Master – Powerfull, secure & easy auth system built with PHP + MySQL πŸ’» βœ… Register πŸ‘€ | πŸ”‘ Login | πŸ”“ Logout | πŸ›‘οΈ Session Control | πŸ”’ Hashed Passwords | ⚠️ Error Handling | πŸ§‘β€πŸ’Ό Admin Panel Perfect for any web app πŸš€ with smooth role-based user management! 🎯

Notifications You must be signed in to change notification settings

Iqbolshoh/php-auth-master

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”‘ PHP Auth Master

This repository is a user authentication and role management system built with PHP. It provides an easy-to-use admin panel and allows the creation and management of multiple user roles. Security is the top priority in PHP Auth Master, ensuring user data is well-protected.

Active Sessions

✨ Features

  • πŸ”Ή Multiple User Roles – Easily manage Admin, User, and more.
  • πŸ”Ή Admin Panel – Built-in dashboard for role & permission control.
  • πŸ”Ή Secure Authentication – Password hashing & session protection.
  • πŸ”Ή Role-Based Access – Restrict pages based on user roles.
  • πŸ”Ή Auto Menu Generation – Dynamic navigation for admin panel.
  • πŸ”Ή Advanced Security – Active session tracking & auto logout on password change.

πŸ›‘ Why PHP Auth Master?

βœ… Secure – Tracks active sessions & prevents unauthorized access.
βœ… Easy to Use – Simple admin panel for quick management.
βœ… Scalable – Add new roles & users effortlessly.
βœ… Real-Time Control – Monitor & remove active sessions anytime.

πŸ” Login Page

Login

  • πŸ–₯ Admin Login: iqbolshoh
  • πŸ‘€ User Login: user
  • πŸ”‘ Password: IQBOLSHOH

πŸ” Preview Pages

πŸ›  Admin Dashboard

Admin
Admin can view and update their profile. They can also access system settings and manage various administrative functions.

πŸ‘₯ Create User

Create-User Admin can view all users and create multiple new users. They have full control over user management and permissions.

πŸ‘€ User Dashboard

User Users can view and update their profile. They can also access available features


πŸ›  Easy Menu Creation

Creating a menu in the admin panel is super easy! Just define the menu structure, and the system will automatically generate the necessary navigation and pages for you. πŸŽ‰

Here’s a simple example:

$menuItems = [
    [
        "menuTitle" => "Dashboard",
        "icon" => "fas fa-tachometer-alt",
        "pages" => [
            ["title" => "Home", "url" => "index.php"]
        ],
    ],
    [
        "menuTitle" => "Settings",
        "icon" => "fas fa-cog",
        "pages" => [
            ["title" => "Profile", "url" => "profile.php"],
            ["title" => "Active Sessions", "url" => "active_sessions.php"]
        ],
    ]
];

πŸ“Œ No need for manual codingβ€”just define your menu items, and the system takes care of the rest! πŸš€


πŸš€ Quick Setup

Get PHP Auth Master running in just two steps!

1️⃣ Clone the Repository

git clone https://github.com/Iqbolshoh/php-auth-master.git
cd php-auth-master

2️⃣ Import the Database

mysql -u yourusername -p yourpassword < database.sql

πŸ”Ή Replace yourusername & yourpassword with your MySQL credentials.


πŸ›  Easy Database & Role Setup

Just edit config.php to set up the database:

define("DB_SERVER", "localhost");
define("DB_USERNAME", "root");
define("DB_PASSWORD", "");
define("DB_NAME", "auth_master");

πŸ”‘ Adding Roles? Just update ROLESβ€”the system handles the rest! πŸš€

const ROLES = [
    'admin' => '/admin/',
    'user' => '/', 
    'manager'=>'/manager/' // Add role
];

πŸ–₯ Technologies Used

HTML CSS Bootstrap JavaScript jQuery PHP MySQL

πŸ“œ License

This project is open-source and available under the MIT License.

🀝 Contributing

🎯 Contributions are welcome! If you have suggestions or want to enhance the project, feel free to fork the repository and submit a pull request.

πŸ“¬ Connect with Me

πŸ’¬ I love meeting new people and discussing tech, business, and creative ideas. Let’s connect! You can reach me on these platforms:

About

πŸ” PHP Auth Master – Powerfull, secure & easy auth system built with PHP + MySQL πŸ’» βœ… Register πŸ‘€ | πŸ”‘ Login | πŸ”“ Logout | πŸ›‘οΈ Session Control | πŸ”’ Hashed Passwords | ⚠️ Error Handling | πŸ§‘β€πŸ’Ό Admin Panel Perfect for any web app πŸš€ with smooth role-based user management! 🎯

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages