A web-based inventory management system specifically for books, built with pure PHP (no framework) using the Clean Architecture pattern for modularity and scalability.
- 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.)
git clone https://github.com/amrudzr/book-rental.gitFor Laragon:
Place in C:/laragon/www/book-rental
For XAMPP:
Place in C:/xampp/htdocs/book-rental
CREATE DATABASE book_rental CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;Edit: config/connection.php
Set your $user, $pass, and $dsn credentials.
Migrations
php database/migrate.phpRuns all SQL in: database/migrations/
Seed Data (Optional)
php database/seed.phpbook-rental/
├── public/
│ ├── assets/
│ ├── pages/
│ └── uploads/
├── core/
│ ├── entities/
│ ├── usecases/
│ ├── repositories/
│ └── controllers/
├── config/
├── services/
├── database/
│ ├── migrations/
│ ├── seeders/
│ ├── migrate.php
│ └── seed.php
- Contributions welcome!
- Fork the repository
- Create your feature branch
- Submit a pull request
MIT License - see LICENSE for details.
Amru Dzaky
