Skip to content

hashmat-mowahidi/php-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔐 Simple PHP Authentication System

A simple authentication system built with core PHP (no framework), demonstrating user registration, login, logout and session-based authentication.

📌 Features

  • User Registration
  • User Login
  • User Logout
  • Password hashing
  • Session-based authentication
  • Server-side validation
  • Proper error handling
  • Clean folder structure

🛠️ Technologies Used

  • PHP (Core PHP)
  • MySQL
  • HTML5
  • CSS3
  • Apache (XAMPP)

⚙️ Configuration & Setup

1️⃣ Clone the Repository

git clone https://github.com/hashmat-mowahidi/php-auth.git
cd php-auth

2️⃣ Server Requirements

  • XAMPP installed
  • Apache running
  • MySQL running

3️⃣ Database Configuration

Edit the database configuration file:

config/db.php:

<?php
$host = 'localhost';
$dbname = 'user_auth';
$dbusername = 'root';
$dbpassword = '';

📌 Important:

  • You do NOT need to manually create the database
  • The database and required tables are created automatically when index.php is run for the first time

4️⃣ Run the Project

  1. Move the project folder to:
xampp/htdocs/
  1. Open your browser and visit:
http://localhost/php-auth/index.php

About

A simple user authentication system built with core PHP and MySQL.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors