Files
svc-essensplanung/Doku/adr/001-backend-symfony.md

20 lines
982 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 001 – Backend auf Symfony 7 (PHP)
**Status:** accepted
**Kontext.** Das Werkzeug braucht eine kleine CRUD-API, die später auch von
Home-Assistant und (ggf.) von mobilen Clients konsumiert wird. Der
Projektverantwortliche kennt Symfony und möchte die Logik im Backend tragen
(serverseitig), nicht im Frontend.
**Entscheidung.** Symfony 7 (PHP 8.3) als Backend-Framework. Eigene schlanke
Controller mit JSON-Antworten, **kein ApiPlatform** (zu viel Magie für dieses
Anwendungsfeld). Repository-Schicht via Doctrine.
**Konsequenzen.**
- + Konvention/Ökosystem des Betreibers, kein zweites Ökosystem.
- + Doctrine + Symfony-Forms decken CRUD, Validierung und Security-Grundbaukästen ab.
- + Einfach zu hosten: FrankenPHP (oder php-fpm + nginx) in einem Container, keine zweite Laufzeit.
- − Keine SPA-Features, kein React-Native-Ökosystem – passt aber zur Anordnung.
- − Symfony hat eine Learning-Curve für neue Team-Mitglieder; im aktuellen Kontext kein Problem.