Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

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