Skip to content

amrudzr/book-rental

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📚 Book Rental Management System (PHP Native + Clean Architecture)

A web-based inventory management system specifically for books, built with pure PHP (no framework) using the Clean Architecture pattern for modularity and scalability.

📷 UI Preview

Preview screenshot

🧰 Tech Stack

  • PHP 8.1+
  • MySQL / MariaDB
  • Bootstrap 5 + Bootstrap Icons
  • PDO (secure database access)
  • Clean Architecture (Entities, Use Cases, Interface Adapters, Framework)
  • Component-based pages (Layout, Sidebar, Modal, etc.)

⚙️ Installation

1. Clone the Repository

git clone https://github.com/amrudzr/book-rental.git

2. Move Project to Web Directory

For Laragon:

Place in C:/laragon/www/book-rental

For XAMPP:

Place in C:/xampp/htdocs/book-rental

3. Create Database

CREATE DATABASE book_rental CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

4. Configure Connection

Edit: config/connection.php

Set your $user, $pass, and $dsn credentials.

🛠 Database Setup

Migrations

php database/migrate.php

Runs all SQL in: database/migrations/

Seed Data (Optional)

php database/seed.php

✨ Features

✔️ Complete CRUD operations for books

✔️ Book cover image uploads

✔️ Search functionality (title/author)

✔️ Responsive Bootstrap interface

✔️ Sidebar navigation

✔️ Route handling (index.php?page=...)

✔️ Modal confirmation dialogs

✔️ Organized project structure

📂 Project Structure

book-rental/
├── public/
│   ├── assets/
│   ├── pages/
│   └── uploads/
├── core/
│   ├── entities/
│   ├── usecases/
│   ├── repositories/
│   └── controllers/
├── config/
├── services/
├── database/
│   ├── migrations/
│   ├── seeders/
│   ├── migrate.php
│   └── seed.php

🤝 Contributing

  • Contributions welcome!
  • Fork the repository
  • Create your feature branch
  • Submit a pull request

📜 License

MIT License - see LICENSE for details.

👤 Author

Amru Dzaky

About

A web-based book inventory management system built with native PHP and clean architecture, featuring Bootstrap UI, modular components, and MySQL integration.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages