{"id":25411500,"url":"https://github.com/aboualine/php-library-system","last_synced_at":"2026-04-14T10:32:53.770Z","repository":{"id":276493459,"uuid":"929449207","full_name":"aboualine/php-library-system","owner":"aboualine","description":"A Library Management System built with PHP, MySQL, and Bootstrap. It manages books, tracks borrow/return transactions, and allows searching by title, author, or ISBN. Fully responsive and user-friendly.","archived":false,"fork":false,"pushed_at":"2025-02-22T16:55:06.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T17:56:27.161Z","etag":null,"topics":["bootstrap5","css","html","java","javascript","js","json","library","library-management-system","mysql","php","sql","system","vscode","xml"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aboualine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-08T15:24:17.000Z","updated_at":"2025-02-22T16:55:08.000Z","dependencies_parsed_at":"2025-04-14T08:47:02.492Z","dependency_job_id":"86d67e62-2149-4a3d-ba9b-8c7c51929d0a","html_url":"https://github.com/aboualine/php-library-system","commit_stats":null,"previous_names":["aboualine/php-library-system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aboualine/php-library-system","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboualine%2Fphp-library-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboualine%2Fphp-library-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboualine%2Fphp-library-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboualine%2Fphp-library-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aboualine","download_url":"https://codeload.github.com/aboualine/php-library-system/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboualine%2Fphp-library-system/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31793214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap5","css","html","java","javascript","js","json","library","library-management-system","mysql","php","sql","system","vscode","xml"],"created_at":"2025-02-16T10:18:30.406Z","updated_at":"2026-04-14T10:32:53.748Z","avatar_url":"https://github.com/aboualine.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Library Management System\n\nA **Library Management System** built using PHP, MySQL, HTML, CSS, JavaScript, and Bootstrap. This system allows users to manage books, borrow and return books, and search for books in the library.\n\n## Features\n\n### Book Management\n- Add new books with details like **title, author, ISBN, genre, and quantity**.\n- View all books in a table.\n- Delete books from the library.\n\n### User Management\n- Register and log in as a **user** or **admin**.\n- Admins can manage books and users.\n\n### Transaction Management\n- Borrow and return books.\n- Track due dates and overdue books.\n\n### Search Functionality\n- Search for books by **title, author, or ISBN**.\n\n### Responsive Design\n- Built with **Bootstrap** for a modern and responsive UI.\n\n## Technologies Used\n\n### Frontend\n- **HTML, CSS, JavaScript**\n- **Bootstrap** (for styling)\n\n### Backend\n- **PHP** (for server-side logic)\n- **MySQL** (for database management)\n\n### Tools\n- **XAMPP** (for local server setup)\n- **Git** (for version control)\n\n## Setup Instructions\n\n### Prerequisites\n- XAMPP (or any local server like WAMP/MAMP).\n- MySQL database.\n- Git (optional, for cloning the repository).\n\n### Steps to Run the Project\n\n#### Clone the Repository\n```bash\ngit clone https://github.com/aboualine/library-management-system.git\ncd library-management-system\n```\n\n#### Set Up the Database\n1. Open **phpMyAdmin** (or any MySQL client).\n2. Create a new database named **library_management_system**.\n3. Import the SQL file (**database.sql**) located in the `sql/` directory.\n\n#### Configure the Project\nOpen the `config.php` file and update the database credentials:\n```php\ndefine('DB_HOST', 'localhost');\ndefine('DB_USER', 'root');\ndefine('DB_PASSWORD', '');\ndefine('DB_NAME', 'library_management_system');\n```\n\n#### Run the Project\n1. Move the project folder to the `htdocs` directory of your **XAMPP** installation.\n2. Start **Apache** and **MySQL** from the XAMPP Control Panel.\n3. Open your browser and navigate to:\n```bash\nhttp://localhost/library-management-system/\n```\n\n## Project Structure\n```\nlibrary-management-system/\n│\n├── index.php           # Homepage (View Books)\n├── add_book.php        # Add a new book\n├── delete_book.php     # Delete a book\n├── search_book.php     # Search for a book\n├── login.php           # User login\n├── register.php        # User registration\n├── config.php          # Database configuration\n├── styles.css          # Custom CSS\n├── script.js           # Custom JavaScript\n├── sql/\n│   └── database.sql    # SQL dump for the database\n└── README.md           # Project documentation\n```\n\n## Usage\n\n### 1. Add a Book\n- Navigate to `add_book.php`.\n- Fill out the form with book details (**title, author, ISBN, genre, quantity**).\n- Click **Add Book**.\n\n### 2. View Books\n- Go to `index.php`.\n- All books will be displayed in a table.\n\n### 3. Search Books\n- Go to `search_book.php`.\n- Enter a search query (**title, author, or ISBN**).\n- Matching books will be displayed.\n\n### 4. Borrow a Book\n- Log in as a **user**.\n- Go to `index.php`.\n- Click **Borrow** next to the book you want to borrow.\n\n### 5. Return a Book\n- Log in as a **user**.\n- Go to `index.php`.\n- Click **Return** next to the book you want to return.\n\n## Screenshots\n\n### Homepage (View Books)\n\n![image](https://github.com/user-attachments/assets/11748d7d-39b4-4d2c-b744-ec3ec56f4554)\n\n\n### Add a Book\n\n![image](https://github.com/user-attachments/assets/2adb4dc2-17ae-45d6-848b-2ae0e3e9bbab)\n\n### Search Books\n\n![image](https://github.com/user-attachments/assets/1979f5e3-4135-43fd-bb74-25aad235f26b)\n\n## Contributing\n\nContributions are welcome! Follow these steps:\n\n1. **Fork** the repository.\n2. Create a new branch:\n```bash\ngit checkout -b feature/your-feature-name\n```\n3. Commit your changes:\n```bash\ngit commit -m \"Add your message here\"\n```\n4. Push to the branch:\n```bash\ngit push origin feature/your-feature-name\n```\n5. Open a **pull request**.\n\n## License\n\nThis project is licensed under the **MIT License**. See the `LICENSE` file for details.\n\n## Acknowledgments\n- **Bootstrap** for the responsive design.\n- **PHP and MySQL** for backend functionality.\n- **GitHub** for hosting the repository.\n\n## Contact\n\nFor any questions or feedback, feel free to reach out:\n\n📧 Email: [mohamedaboualine@example.com](mailto:mohamedaboualine@example.com)\n\n🐙 GitHub: [aboualine](https://github.com/aboualine)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboualine%2Fphp-library-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faboualine%2Fphp-library-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboualine%2Fphp-library-system/lists"}