Skip to content

DigitalEforce/php-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” PHP Login & Registration System

A simple, secure, and functional PHP login & registration system with MySQL database.
Perfect for learning user authentication or integrating into small projects.


πŸš€ Features

  • User registration with unique usernames
  • Secure password hashing (BCRYPT)
  • Login authentication
  • Protected dashboard page
  • Logout functionality
  • Easy setup and integration

πŸ›  Installation

  1. Clone or download this repository.
  2. Import sql.sql into your MySQL database.
  3. Update database credentials in config.php.
  4. Run on a local server (XAMPP/WAMP) or live server.
  5. Open register.php to create a new account.
  6. Login via login.php to access dashboard.php.

🧾 Database Structure

CREATE DATABASE php_auth;
USE php_auth;

CREATE TABLE users (
    id INT AUTO_INCREMENT PRIMARY KEY,
    username VARCHAR(50) NOT NULL UNIQUE,
    password VARCHAR(255) NOT NULL
);

🌟 About Me

Hi, I’m Naveed, a passionate web developer.
I love creating functional, clean, and secure web applications.

πŸ’» Check out my GitHub profile for more projects:
https://github.com/DigitalEforce

πŸ“« Contact me anytime for collaboration or suggestions.


πŸ“Œ License

This project is free to use and modify.


β€œCode is like humor. When you have to explain it, it’s bad.” – Cory House

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages