Skip to content

rafaumeu/bookwise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

68 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PHP 8.3 SQLite PHPStan Clean Architecture SOLID

Overview

A book management system built with PHP 8.3 and SQLite, applying Clean Architecture and SOLID principles. Designed as a reference implementation for writing maintainable, testable PHP code with strict typing.

Features

  • Book CRUD operations with validation
  • Student management and tracking
  • Book rental/return system
  • Strict types enforcement throughout
  • PHPStan level 8+ static analysis
  • Clean separation of concerns (Entities, Use Cases, Repositories)

Tech Stack

Technology Purpose
PHP 8.3 Core language with strict types
SQLite Lightweight embedded database
PHPStan Static analysis tool
PHPUnit/Pest Testing framework

Architecture

src/
β”œβ”€β”€ Entities/          # Domain entities (Book, Student)
β”œβ”€β”€ UseCases/          # Application business rules
β”œβ”€β”€ Repositories/      # Data access interfaces
└── Infra/             # Infrastructure implementations

Getting Started

git clone https://github.com/rafaumeu/bookwise.git
cd bookwise
composer install
php artisan serve

What I Learned

  • Clean Architecture applied to PHP
  • SOLID principles in practice
  • Value Objects and Entity design
  • Repository pattern for data access
  • Static analysis with PHPStan

License

MIT


Built with ❀️ by Rafael Zendron

Use this template

About

πŸ“š Book management system β€” PHP 8.3 + Clean Architecture + PHPStan + SQLite. SOLID principles applied.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Contributors