# izaalalacoder/agora architecture

> Architecture diagram of the GitHub repository izaalalacoder/agora, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/izaalalacoder/agora
- Repository: https://github.com/izaalalacoder/agora
- Video tour (about a minute): https://gitdiagram.com/izaalalacoder/agora/video

## Overview

Agora is a Symfony web application for creating online board-game lobbies, inviting or joining players, and playing 6 qui prend, Splendor, Glenmore, and Myrmes. The platform layer manages lobby and account workflows; a shared game manager dispatches lifecycle operations to game-specific managers, while game controllers handle play interactions and game services implement rules. Persistent game state is represented by Doctrine entities and repositories, with game activity recorded by a logging service. The README documents the product capabilities; some controller and service internals were not sampled, so uncertain links are omitted.

Main entry points: [`app/src/Service/Game/GameManagerService.php`](https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/GameManagerService.php) (Game dispatch), [`app/src/Service/Game/Myrmes/MYRGameManagerService.php`](https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/Myrmes/MYRGameManagerService.php) (Myrmes setup), [`app/src/Service/Game/LogService.php`](https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/LogService.php) (Game activity logs), [`app/src/Entity/Game/DTO/Game.php`](https://github.com/izaalalacoder/agora/blob/main/app/src/Entity/Game/DTO/Game.php) (Game entities)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_platform["Platform"]
  node_platform_web["Platform workflows"]
  node_lobby_service["Lobby management"]
  node_platform_entities["Platform records<br/>[Board.php]"]
end

subgraph group_lifecycle["Game lifecycle"]
  node_game_dispatch["Game dispatch"]
  node_game_contract["Lifecycle contract"]
  node_glm_lifecycle["Glenmore setup"]
  node_myr_lifecycle["Myrmes setup"]
  node_spl_lifecycle["Splendor setup"]
  node_six_lifecycle["6QP setup"]
end

subgraph group_play["Game play"]
  node_game_controllers["Game interactions"]
  node_glm_rules["Glenmore rules<br/>[GLMService.php]"]
  node_myr_rules["Myrmes rules<br/>[MYRService.php]"]
  node_spl_rules["Splendor rules<br/>[SPLService.php]"]
  node_six_rules["6QP rules<br/>[SixQPService.php]"]
end

subgraph group_state["Game state"]
  node_game_state["Game entities<br/>[Game.php]"]
  node_myr_player["Myrmes player state<br/>[PlayerMYR.php]"]
  node_repositories["Game repositories"]
  node_game_logs["Game activity logs<br/>[LogService.php]"]
end

node_player(("Player"))
node_database[("MariaDB")]

node_player -->|"uses"| node_platform_web
node_platform_web -.->|"manages lobbies"| node_lobby_service
node_lobby_service -->|"delegates games"| node_game_dispatch
node_game_dispatch -->|"uses contract"| node_game_contract
node_game_dispatch -->|"dispatches"| node_glm_lifecycle
node_game_dispatch -->|"dispatches"| node_myr_lifecycle
node_game_dispatch -->|"dispatches"| node_spl_lifecycle
node_game_dispatch -->|"dispatches"| node_six_lifecycle
node_glm_lifecycle -->|"creates"| node_game_state
node_myr_lifecycle -->|"creates"| node_game_state
node_spl_lifecycle -->|"creates"| node_game_state
node_six_lifecycle -->|"creates"| node_game_state
node_game_controllers -->|"calls"| node_glm_rules
node_game_controllers -->|"records actions"| node_game_logs
node_glm_lifecycle -->|"writes logs"| node_game_logs
node_myr_lifecycle -->|"writes logs"| node_game_logs
node_game_dispatch -->|"reads games"| node_repositories
node_lobby_service -->|"manages records"| node_platform_entities
node_myr_lifecycle -->|"creates players"| node_myr_player
node_repositories -.->|"persists state"| node_database
node_platform_entities -.->|"persists records"| node_database
node_game_logs -->|"stores logs"| node_database

click node_platform_web "https://github.com/izaalalacoder/agora/blob/main/app/src/Controller/Platform/DashboardController.php"
click node_lobby_service "https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Platform/BoardManagerService.php"
click node_platform_entities "https://github.com/izaalalacoder/agora/blob/main/app/src/Entity/Platform/Board.php"
click node_game_dispatch "https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/GameManagerService.php"
click node_game_contract "https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/AbstractGameManagerService.php"
click node_glm_lifecycle "https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/Glenmore/GLMGameManagerService.php"
click node_myr_lifecycle "https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/Myrmes/MYRGameManagerService.php"
click node_spl_lifecycle "https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/Splendor/SPLGameManagerService.php"
click node_six_lifecycle "https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/SixQP/SixQPGameManagerService.php"
click node_game_controllers "https://github.com/izaalalacoder/agora/blob/main/app/src/Controller/Game/GlenmoreController.php"
click node_glm_rules "https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/Glenmore/GLMService.php"
click node_myr_rules "https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/Myrmes/MYRService.php"
click node_spl_rules "https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/Splendor/SPLService.php"
click node_six_rules "https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/SixQP/SixQPService.php"
click node_game_state "https://github.com/izaalalacoder/agora/blob/main/app/src/Entity/Game/DTO/Game.php"
click node_myr_player "https://github.com/izaalalacoder/agora/blob/main/app/src/Entity/Game/Myrmes/PlayerMYR.php"
click node_repositories "https://github.com/izaalalacoder/agora/blob/main/app/src/Repository/Game/Glenmore/PlayerGLMRepository.php"
click node_game_logs "https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/LogService.php"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_platform_web,node_lobby_service,node_platform_entities toneBlue
class node_game_dispatch,node_game_contract,node_glm_lifecycle,node_myr_lifecycle,node_spl_lifecycle,node_six_lifecycle,node_database toneAmber
class node_game_controllers,node_glm_rules,node_myr_rules,node_spl_rules,node_six_rules toneMint
class node_game_state,node_myr_player,node_repositories,node_game_logs toneRose
class node_player toneIndigo
```

## Components

### Platform

- [Platform workflows](https://github.com/izaalalacoder/agora/blob/main/app/src/Controller/Platform/DashboardController.php): `app/src/Controller/Platform/DashboardController.php`
- [Lobby management](https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Platform/BoardManagerService.php): `app/src/Service/Platform/BoardManagerService.php`
- [Platform records](https://github.com/izaalalacoder/agora/blob/main/app/src/Entity/Platform/Board.php): `app/src/Entity/Platform/Board.php`

### Game lifecycle

- [Game dispatch](https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/GameManagerService.php): `app/src/Service/Game/GameManagerService.php`
- [Lifecycle contract](https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/AbstractGameManagerService.php): `app/src/Service/Game/AbstractGameManagerService.php`
- [Glenmore setup](https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/Glenmore/GLMGameManagerService.php): `app/src/Service/Game/Glenmore/GLMGameManagerService.php`
- [Myrmes setup](https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/Myrmes/MYRGameManagerService.php): `app/src/Service/Game/Myrmes/MYRGameManagerService.php`
- [Splendor setup](https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/Splendor/SPLGameManagerService.php): `app/src/Service/Game/Splendor/SPLGameManagerService.php`
- [6QP setup](https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/SixQP/SixQPGameManagerService.php): `app/src/Service/Game/SixQP/SixQPGameManagerService.php`

### Game play

- [Game interactions](https://github.com/izaalalacoder/agora/blob/main/app/src/Controller/Game/GlenmoreController.php): `app/src/Controller/Game/GlenmoreController.php`
- [Glenmore rules](https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/Glenmore/GLMService.php): `app/src/Service/Game/Glenmore/GLMService.php`
- [Myrmes rules](https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/Myrmes/MYRService.php): `app/src/Service/Game/Myrmes/MYRService.php`
- [Splendor rules](https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/Splendor/SPLService.php): `app/src/Service/Game/Splendor/SPLService.php`
- [6QP rules](https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/SixQP/SixQPService.php): `app/src/Service/Game/SixQP/SixQPService.php`

### Game state

- [Game entities](https://github.com/izaalalacoder/agora/blob/main/app/src/Entity/Game/DTO/Game.php): `app/src/Entity/Game/DTO/Game.php`
- [Myrmes player state](https://github.com/izaalalacoder/agora/blob/main/app/src/Entity/Game/Myrmes/PlayerMYR.php): `app/src/Entity/Game/Myrmes/PlayerMYR.php`
- [Game repositories](https://github.com/izaalalacoder/agora/blob/main/app/src/Repository/Game/Glenmore/PlayerGLMRepository.php): `app/src/Repository/Game/Glenmore/PlayerGLMRepository.php`
- [Game activity logs](https://github.com/izaalalacoder/agora/blob/main/app/src/Service/Game/LogService.php): `app/src/Service/Game/LogService.php`

### Other components

- **Player**
- **MariaDB**

## Connections

- Player → Platform workflows: uses
- Platform workflows → Lobby management: manages lobbies
- Lobby management → Game dispatch: delegates games (evidence: `app/src/Service/Platform/BoardManagerService.php`)
- Game dispatch → Lifecycle contract: uses contract (evidence: `app/src/Service/Game/GameManagerService.php`)
- Game dispatch → Glenmore setup: dispatches (evidence: `app/src/Service/Game/GameManagerService.php`)
- Game dispatch → Myrmes setup: dispatches (evidence: `app/src/Service/Game/GameManagerService.php`)
- Game dispatch → Splendor setup: dispatches (evidence: `app/src/Service/Game/GameManagerService.php`)
- Game dispatch → 6QP setup: dispatches (evidence: `app/src/Service/Game/GameManagerService.php`)
- Glenmore setup → Game entities: creates (evidence: `app/src/Service/Game/Glenmore/GLMGameManagerService.php`)
- Myrmes setup → Game entities: creates (evidence: `app/src/Service/Game/Myrmes/MYRGameManagerService.php`)
- Splendor setup → Game entities: creates (evidence: `app/src/Service/Game/Splendor/SPLGameManagerService.php`)
- 6QP setup → Game entities: creates (evidence: `app/src/Service/Game/SixQP/SixQPGameManagerService.php`)
- Game interactions → Glenmore rules: calls (evidence: `app/src/Controller/Game/GlenmoreController.php`)
- Game interactions → Game activity logs: records actions (evidence: `app/src/Controller/Game/GlenmoreController.php`)
- Glenmore setup → Game activity logs: writes logs (evidence: `app/src/Service/Game/Glenmore/GLMGameManagerService.php`)
- Myrmes setup → Game activity logs: writes logs (evidence: `app/src/Service/Game/Myrmes/MYRGameManagerService.php`)
- Game dispatch → Game repositories: reads games (evidence: `app/src/Service/Game/GameManagerService.php`)
- Lobby management → Platform records: manages records (evidence: `app/src/Service/Platform/BoardManagerService.php`)
- Myrmes setup → Myrmes player state: creates players (evidence: `app/src/Service/Game/Myrmes/MYRGameManagerService.php`)
- Game repositories → MariaDB: persists state
- Platform records → MariaDB: persists records
- Game activity logs → MariaDB: stores logs (evidence: `app/src/Service/Game/LogService.php`)
