Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.26 KB

File metadata and controls

33 lines (22 loc) · 1.26 KB

Clean Architecture

This example demonstrates clean architecture with separation between Domain and Infrastructure layers, using AbstractRepository and PHP 8 attributes.

What This Example Shows

  • Pure domain entities (no framework dependencies)
  • Table definitions using PHP 8 attributes (#[Table], #[Column])
  • Repository extending AbstractRepository for data access
  • Building tables with AttributeTableBuilder

Files

Running the Example

php example.php

Expected Output

The example demonstrates how domain entities remain framework-agnostic while infrastructure handles database operations using attributes and AbstractRepository.

Related Examples