A simple Library Management System developed using PHP and MySQL. This project demonstrates essential library management functionalities, including managing books, users, and transactions.
- 📖 Add, edit, and delete books
- 👥 Add, edit, and delete users
- 📌 Issue and return books
- 📜 View transaction history
- XAMPP (or any similar local server)
- Basic knowledge of PHP and MySQL
- Download and install XAMPP.
- Start the Apache and MySQL modules from the XAMPP Control Panel.
git clone https://github.com/l1918-spec/library-management-system-.git
Move the project folder to the htdocs
directory in your XAMPP installation:
- Windows:
C:\xampp\htdocs\
- macOS/Linux:
/opt/lampp/htdocs/
- Open phpMyAdmin in your browser (
http://localhost/phpmyadmin
). - Create a new database named
library_management_system
. - Import the
library_management_system.sql
file from thedatabase
folder.
- Open
config.php
and update the database configuration if needed:
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "library_management_system";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
?>
- Open your web browser and navigate to:
http://localhost/library-management-system-
- You should now see the homepage of the Library Management System.
Contributions are welcome! If you'd like to improve the project:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit your changes (
git commit -m "Add new feature"
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE
file for more details.
For questions or suggestions, feel free to open an issue or contact the project maintainer:
📧 [email protected]