# kasemrrash/kita-app-kmh architecture

> Architecture diagram of the GitHub repository kasemrrash/kita-app-kmh, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kasemrrash/kita-app-kmh
- Repository: https://github.com/kasemrrash/kita-app-kmh

## Overview

KitaMenüHVN km/h is a Symfony web app for planning meals in childcare centers. Kitchen staff select a center and calendar week, assign recipes to weekday meals, and use the resulting plan to calculate portions, generate shopping lists, and export meal plans as PDFs. The graph also preserves documented recipe, nutrition, history, and administration capabilities. Service and controller excerpts show some orchestration; other branches are included from the README and source index, so their internal links are left out where implementation evidence is unavailable.

Main entry points: [`docker/app/src/Controller/WochenplanController.php`](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Controller/WochenplanController.php) (Plan view), [`docker/app/src/Service/EinkaufslisteService.php`](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Service/EinkaufslisteService.php) (List calculation), [`docker/app/src/Repository/WochenplaneintragRepository.php`](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Repository/WochenplaneintragRepository.php) (Entry repository), [`docker/app/src/Service/WochenplanService.php`](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Service/WochenplanService.php) (Plan calculations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_planning["Weekly planning"]
  node_dashboard["Dashboard"]
  node_plan_view["Plan view"]
  node_plan_actions["Plan actions"]
  node_plan_service["Plan calculations"]
  node_plan_model["Weekly plan<br/>[Wochenplan.php]"]
  node_entry_model["Plan entries"]
  node_plan_repo["Plan repositories"]
  node_entry_repo["Entry repository"]
  node_center["Childcare center<br/>[Kita.php]"]
  node_center_repo["Center repository<br/>[KitaRepository.php]"]
end

subgraph group_catalog["Recipes and nutrition"]
  node_recipe["Recipe pool<br/>[Rezept.php]"]
  node_recipe_repo["Recipe repository"]
  node_recipe_ingredients["Recipe ingredients"]
  node_dge["DGE checks"]
end

subgraph group_outputs["Plan outputs"]
  node_shopping_controller["Shopping list"]
  node_shopping_service["List calculation"]
  node_shopping_model["List records<br/>[Einkaufsliste.php]"]
  node_pdf["PDF export<br/>[PdfController.php]"]
  node_history["Plan history"]
end

subgraph group_admin["Administration and data"]
  node_recipe_admin["Recipe management"]
  node_admin["Admin area"]
  node_kita_admin["Center management"]
end

node_staff(("Kitchen staff"))

node_staff -->|"opens"| node_dashboard
node_staff -->|"plans meals"| node_plan_view
node_plan_view -->|"loads plans"| node_plan_repo
node_plan_view -->|"loads entries"| node_entry_repo
node_plan_view -->|"loads recipes"| node_recipe_repo
node_plan_view -->|"formats plan"| node_plan_service
node_plan_view -->|"loads center"| node_center_repo
node_plan_actions -->|"checks and creates"| node_plan_service
node_plan_actions -->|"loads plans"| node_plan_repo
node_plan_actions -->|"loads entries"| node_entry_repo
node_plan_actions -->|"loads recipes"| node_recipe_repo
node_dashboard -->|"checks editability"| node_plan_service
node_plan_service -->|"reads ingredients"| node_recipe_ingredients
node_plan_repo -->|"queries"| node_plan_model
node_entry_repo -->|"queries entries"| node_entry_model
node_center_repo -->|"queries"| node_center
node_staff -->|"manages recipes"| node_recipe_admin
node_recipe_repo -->|"queries"| node_recipe
node_staff -->|"reviews nutrition"| node_dge
node_staff -->|"requests list"| node_shopping_controller
node_shopping_controller -->|"generates list"| node_shopping_service
node_shopping_service -->|"reads plan entries"| node_entry_repo
node_shopping_service -->|"reads quantities"| node_recipe_ingredients
node_shopping_service -->|"calculates portions"| node_plan_service
node_shopping_service -->|"persists list"| node_shopping_model
node_staff -->|"exports plan"| node_pdf
node_pdf -->|"uses list service"| node_shopping_service
node_pdf -->|"loads plan"| node_plan_repo
node_pdf -->|"loads entries"| node_entry_repo
node_staff -->|"views past plans"| node_history
node_history -->|"loads plans"| node_plan_repo
node_history -->|"loads entries"| node_entry_repo
node_staff -->|"administers"| node_admin
node_admin -->|"manages centers"| node_kita_admin

click node_dashboard "https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Controller/DashboardController.php"
click node_plan_view "https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Controller/WochenplanController.php"
click node_plan_actions "https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Controller/WochenplanActionController.php"
click node_plan_service "https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Service/WochenplanService.php"
click node_plan_model "https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Entity/Wochenplan.php"
click node_entry_model "https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Entity/Wochenplaneintrag.php"
click node_plan_repo "https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Repository/WochenplanRepository.php"
click node_entry_repo "https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Repository/WochenplaneintragRepository.php"
click node_center "https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Entity/Kita.php"
click node_center_repo "https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Repository/KitaRepository.php"
click node_recipe "https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Entity/Rezept.php"
click node_recipe_repo "https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Repository/RezeptRepository.php"
click node_recipe_ingredients "https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Repository/RezeptZutatRepository.php"
click node_dge "https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Service/DGEPruefungService.php"
click node_shopping_controller "https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Controller/EinkaufslisteController.php"
click node_shopping_service "https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Service/EinkaufslisteService.php"
click node_shopping_model "https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Entity/Einkaufsliste.php"
click node_pdf "https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Controller/PdfController.php"
click node_history "https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Controller/HistorieController.php"
click node_recipe_admin "https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Controller/RezeptController.php"
click node_admin "https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Controller/Admin/DashboardController.php"
click node_kita_admin "https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Controller/Admin/KitaCrudController.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_dashboard,node_plan_view,node_plan_actions,node_plan_service,node_plan_model,node_entry_model,node_plan_repo,node_entry_repo,node_center,node_center_repo toneBlue
class node_recipe,node_recipe_repo,node_recipe_ingredients,node_dge toneAmber
class node_shopping_controller,node_shopping_service,node_shopping_model,node_pdf,node_history toneMint
class node_recipe_admin,node_admin,node_kita_admin toneRose
class node_staff toneIndigo
```

## Components

### Weekly planning

- [Dashboard](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Controller/DashboardController.php): `docker/app/src/Controller/DashboardController.php`
- [Plan view](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Controller/WochenplanController.php): `docker/app/src/Controller/WochenplanController.php`
- [Plan actions](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Controller/WochenplanActionController.php): `docker/app/src/Controller/WochenplanActionController.php`
- [Plan calculations](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Service/WochenplanService.php): `docker/app/src/Service/WochenplanService.php`
- [Weekly plan](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Entity/Wochenplan.php): `docker/app/src/Entity/Wochenplan.php`
- [Plan entries](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Entity/Wochenplaneintrag.php): `docker/app/src/Entity/Wochenplaneintrag.php`
- [Plan repositories](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Repository/WochenplanRepository.php): `docker/app/src/Repository/WochenplanRepository.php`
- [Entry repository](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Repository/WochenplaneintragRepository.php): `docker/app/src/Repository/WochenplaneintragRepository.php`
- [Childcare center](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Entity/Kita.php): `docker/app/src/Entity/Kita.php`
- [Center repository](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Repository/KitaRepository.php): `docker/app/src/Repository/KitaRepository.php`

### Recipes and nutrition

- [Recipe pool](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Entity/Rezept.php): `docker/app/src/Entity/Rezept.php`
- [Recipe repository](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Repository/RezeptRepository.php): `docker/app/src/Repository/RezeptRepository.php`
- [Recipe ingredients](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Repository/RezeptZutatRepository.php): `docker/app/src/Repository/RezeptZutatRepository.php`
- [DGE checks](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Service/DGEPruefungService.php): `docker/app/src/Service/DGEPruefungService.php`

### Plan outputs

- [Shopping list](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Controller/EinkaufslisteController.php): `docker/app/src/Controller/EinkaufslisteController.php`
- [List calculation](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Service/EinkaufslisteService.php): `docker/app/src/Service/EinkaufslisteService.php`
- [List records](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Entity/Einkaufsliste.php): `docker/app/src/Entity/Einkaufsliste.php`
- [PDF export](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Controller/PdfController.php): `docker/app/src/Controller/PdfController.php`
- [Plan history](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Controller/HistorieController.php): `docker/app/src/Controller/HistorieController.php`

### Administration and data

- [Recipe management](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Controller/RezeptController.php): `docker/app/src/Controller/RezeptController.php`
- [Admin area](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Controller/Admin/DashboardController.php): `docker/app/src/Controller/Admin/DashboardController.php`
- [Center management](https://github.com/kasemrrash/kita-app-kmh/blob/main/docker/app/src/Controller/Admin/KitaCrudController.php): `docker/app/src/Controller/Admin/KitaCrudController.php`

### Other components

- **Kitchen staff**

## Connections

- Kitchen staff → Dashboard: opens
- Kitchen staff → Plan view: plans meals
- Plan view → Plan repositories: loads plans (evidence: `docker/app/src/Controller/WochenplanController.php`)
- Plan view → Entry repository: loads entries (evidence: `docker/app/src/Controller/WochenplanController.php`)
- Plan view → Recipe repository: loads recipes (evidence: `docker/app/src/Controller/WochenplanController.php`)
- Plan view → Plan calculations: formats plan (evidence: `docker/app/src/Controller/WochenplanController.php`)
- Plan view → Center repository: loads center (evidence: `docker/app/src/Controller/WochenplanController.php`)
- Plan actions → Plan calculations: checks and creates (evidence: `docker/app/src/Controller/WochenplanActionController.php`)
- Plan actions → Plan repositories: loads plans (evidence: `docker/app/src/Controller/WochenplanActionController.php`)
- Plan actions → Entry repository: loads entries (evidence: `docker/app/src/Controller/WochenplanActionController.php`)
- Plan actions → Recipe repository: loads recipes (evidence: `docker/app/src/Controller/WochenplanActionController.php`)
- Dashboard → Plan calculations: checks editability (evidence: `docker/app/src/Controller/DashboardController.php`)
- Plan calculations → Recipe ingredients: reads ingredients (evidence: `docker/app/src/Service/WochenplanService.php`)
- Plan repositories → Weekly plan: queries (evidence: `docker/app/src/Repository/WochenplanRepository.php`)
- Entry repository → Plan entries: queries entries (evidence: `docker/app/src/Repository/WochenplaneintragRepository.php`)
- Center repository → Childcare center: queries (evidence: `docker/app/src/Repository/KitaRepository.php`)
- Kitchen staff → Recipe management: manages recipes
- Recipe repository → Recipe pool: queries (evidence: `docker/app/src/Repository/RezeptRepository.php`)
- Kitchen staff → DGE checks: reviews nutrition
- Kitchen staff → Shopping list: requests list
- Shopping list → List calculation: generates list (evidence: `docker/app/src/Controller/EinkaufslisteController.php`)
- List calculation → Entry repository: reads plan entries (evidence: `docker/app/src/Service/EinkaufslisteService.php`)
- List calculation → Recipe ingredients: reads quantities (evidence: `docker/app/src/Service/EinkaufslisteService.php`)
- List calculation → Plan calculations: calculates portions (evidence: `docker/app/src/Service/EinkaufslisteService.php`)
- List calculation → List records: persists list (evidence: `docker/app/src/Service/EinkaufslisteService.php`)
- Kitchen staff → PDF export: exports plan
- PDF export → List calculation: uses list service (evidence: `docker/app/src/Controller/PdfController.php`)
- PDF export → Plan repositories: loads plan (evidence: `docker/app/src/Controller/PdfController.php`)
- PDF export → Entry repository: loads entries (evidence: `docker/app/src/Controller/PdfController.php`)
- Kitchen staff → Plan history: views past plans
- Plan history → Plan repositories: loads plans (evidence: `docker/app/src/Controller/HistorieController.php`)
- Plan history → Entry repository: loads entries (evidence: `docker/app/src/Controller/HistorieController.php`)
- Kitchen staff → Admin area: administers
- Admin area → Center management: manages centers (evidence: `docker/app/src/Controller/Admin/DashboardController.php`)
