https://github.com/darkhiem/library-management-system
A PHP-based Library Management System with role-based access, book checkout/return functionality, student management, and overdue fee tracking.
https://github.com/darkhiem/library-management-system
css dbms dbms-project html javascript library-management-system mysql php sql
Last synced: about 2 months ago
JSON representation
A PHP-based Library Management System with role-based access, book checkout/return functionality, student management, and overdue fee tracking.
- Host: GitHub
- URL: https://github.com/darkhiem/library-management-system
- Owner: darkhiem
- Created: 2025-04-04T08:42:04.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-05T16:38:56.000Z (12 months ago)
- Last Synced: 2025-07-05T18:10:42.075Z (12 months ago)
- Topics: css, dbms, dbms-project, html, javascript, library-management-system, mysql, php, sql
- Language: PHP
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 📚 Library Management System
A **comprehensive web-based Library Management System** built with **PHP** and **MySQL**. This system is designed to **streamline** the management of books, users, and borrowing transactions in any library environment.
---
## 🚀 Features
### 🔐 User Authentication
- Secure login system for **administrators and students**
- **Role-based access control** (admin/student)
- Efficient **session management**
### 👨🎓 Student Features
- 🧭 Browse available books
- 📚 Borrow books with **automatic due date assignment**
- 🕒 View personal **borrowing history**
### 🛠️ Admin Features
- 📖 Full book management: **add,view, delete**
- 🧑💼 Student account management: **create, delete**
- 📊 Monitor all **borrowed books**
- ⏰ Track **overdue books** with **automatic fine calculation**
- 🔄 Process **book returns**
### 🔒 Security Measures
- 🛡️ SQL injection protection
- 🔄 Proper session handling
- 🔓 Secure logout functionality
---
## 🧰 Tech Stack
- **Frontend**: HTML, CSS, JavaScript
- **Backend**: PHP
- **Database**: MySQL
---
## 🗃️ Database Schema
```sql
CREATE DATABASE library;
USE library;
CREATE TABLE users (
id INT AUTO_INCREMENT PRIMARY KEY,
username VARCHAR(50) UNIQUE NOT NULL,
email VARCHAR(100) UNIQUE NOT NULL,
password VARCHAR(255) NOT NULL
);
CREATE TABLE books (
id INT AUTO_INCREMENT PRIMARY KEY,
title VARCHAR(100) NOT NULL,
author VARCHAR(100) NOT NULL,
category VARCHAR(50) NOT NULL,
available BOOLEAN DEFAULT TRUE
);
CREATE TABLE borrowed_books (
id INT AUTO_INCREMENT PRIMARY KEY,
book_id INT NOT NULL,
user_id INT NOT NULL,
borrow_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
return_date DATE NULL,
status ENUM('borrowed', 'returned') DEFAULT 'borrowed',
FOREIGN KEY (book_id) REFERENCES books(id),
FOREIGN KEY (user_id) REFERENCES users(id)
);
```
---
## 🔧 Usage
### 👑 Admin Account
To get started, create an admin account
### 👤 Student Access
- Students can log in using their credentials
- New student accounts are **created by administrators**
### 🔄 System Workflow
1. 🔐 Login with your role-specific credentials
2. 👨🎓 Students: browse and borrow available books
3. 👩💼 Admins: manage books, students, and monitor all borrowing activities
4. ⏳ The system automatically tracks **due dates** and **calculates fines** for overdue books
---
## 🖼️ Screenshots
> ✨ Visual preview of the system in action:





---
## 🚧 Future Enhancements
Here's what's planned for future versions:
- 🤖 AI-based book **recommendation system**
- 📷 Barcode scanning for faster book issuance
- 📱 Mobile application development
- 🔐 Enhanced security with **OAuth-based authentication**
- 📧 Email notifications for **due date reminders**
---
## Contributers 💻