# falyhenintsoaharimino-design/projet-de-stage-_-orient-admin architecture

> Architecture diagram of the GitHub repository falyhenintsoaharimino-design/projet-de-stage-_-orient-admin, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin
- Repository: https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin

## Overview

Orient-Admin is a Symfony REST backend for citizens seeking public-service guidance, with a separate Python orientation engine and a same-origin frontend described in the README (frontend source files are not present in the supplied tree). The main workflow records a citizen’s request, recommends a service, and supports follow-up through procedure information and appointment booking. Other documented capabilities include service search, notifications, agent communication, feedback, administration, and audit. The graph uses the supplied source excerpts and reference index; unsampled controller behavior is represented conservatively, without inferred call paths.

Main entry points: [`src/Controller/RendezVousApiController.php`](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Controller/RendezVousApiController.php) (Appointment API), [`public/index.php`](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/public/index.php) (Symfony API), [`src/Service/OrientationEngine.php`](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Service/OrientationEngine.php) (Orientation engine), [`src/Service/JournalService.php`](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Service/JournalService.php) (Audit journal)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["API and access"]
  node_api["Symfony API<br/>[index.php]"]
  node_auth["Authentication<br/>[AuthController.php]"]
end

subgraph group_guidance["Guidance workflow"]
  node_request["Citizen requests"]
  node_orientation["Orientation engine"]
  node_python_client["Python client<br/>[MoteurClient.php]"]
  node_python_api["Python engine API<br/>[app.py]"]
  node_python_eval["Text evaluation<br/>[evaluer.py]"]
  node_python_model["Orientation logic<br/>[moteur.py]"]
  node_service_catalog["Service catalog"]
  node_search["Service search"]
  node_procedures["Procedure catalog"]
  node_procedure_api["Procedure API"]
end

subgraph group_appointments["Appointments and communication"]
  node_appointments_api["Appointment API"]
  node_booking["Booking service"]
  node_slots["Slot management"]
  node_notifications["Notifications"]
  node_sms["SMS simulator<br/>[SmsSimulateur.php]"]
end

subgraph group_operations["Administration and records"]
  node_feedback["Citizen feedback"]
  node_admin["User administration"]
  node_stats["Statistics"]
  node_audit["Audit journal<br/>[JournalService.php]"]
  node_data_model[("Domain records<br/>[Demande.php]")]
end

node_citizen(("Citizen"))
node_postgres[("PostgreSQL")]

node_citizen -->|"uses"| node_api
node_api -.->|"routes requests"| node_auth
node_api -.->|"routes requests"| node_request
node_request -->|"requests recommendation"| node_orientation
node_orientation -->|"queries engine"| node_python_client
node_orientation -->|"loads active services"| node_service_catalog
node_python_client -.->|"calls engine"| node_python_api
node_python_api -.->|"evaluates text"| node_python_eval
node_python_eval -.->|"uses orientation logic"| node_python_model
node_service_catalog -->|"searches services"| node_search
node_procedure_api -->|"manages procedures"| node_procedures
node_procedure_api -->|"searches procedures"| node_search
node_appointments_api -->|"manages bookings"| node_booking
node_appointments_api -->|"sends notifications"| node_notifications
node_appointments_api -->|"records actions"| node_audit
node_slots -->|"records slot changes"| node_audit
node_notifications -.->|"may send SMS"| node_sms
node_admin -->|"records actions"| node_audit
node_data_model -.->|"persists records"| node_postgres

click node_api "https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/public/index.php"
click node_auth "https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Controller/AuthController.php"
click node_request "https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Controller/DemandeApiController.php"
click node_orientation "https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Service/OrientationEngine.php"
click node_python_client "https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Service/MoteurClient.php"
click node_python_api "https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/moteur/app.py"
click node_python_eval "https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/moteur/evaluer.py"
click node_python_model "https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/moteur/moteur.py"
click node_service_catalog "https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Controller/ServiceApiController.php"
click node_search "https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Service/RechercheService.php"
click node_procedures "https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Service/CatalogueService.php"
click node_procedure_api "https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Controller/ProcedureApiController.php"
click node_appointments_api "https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Controller/RendezVousApiController.php"
click node_booking "https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Service/RendezVousService.php"
click node_slots "https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Controller/CreneauApiController.php"
click node_notifications "https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Service/NotificationService.php"
click node_sms "https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Service/SmsSimulateur.php"
click node_feedback "https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Controller/AvisApiController.php"
click node_admin "https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Controller/UtilisateurAdminApiController.php"
click node_stats "https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Service/StatistiquesService.php"
click node_audit "https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Service/JournalService.php"
click node_data_model "https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Entity/Demande.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_api,node_auth toneBlue
class node_request,node_orientation,node_python_client,node_python_api,node_python_eval,node_python_model,node_service_catalog,node_search,node_procedures,node_procedure_api,node_postgres toneAmber
class node_appointments_api,node_booking,node_slots,node_notifications,node_sms toneMint
class node_feedback,node_admin,node_stats,node_audit,node_data_model toneRose
class node_citizen toneIndigo
```

## Components

### API and access

- [Symfony API](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/public/index.php): `public/index.php`
- [Authentication](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Controller/AuthController.php): `src/Controller/AuthController.php`

### Guidance workflow

- [Citizen requests](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Controller/DemandeApiController.php): `src/Controller/DemandeApiController.php`
- [Orientation engine](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Service/OrientationEngine.php): `src/Service/OrientationEngine.php`
- [Python client](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Service/MoteurClient.php): `src/Service/MoteurClient.php`
- [Python engine API](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/moteur/app.py): `moteur/app.py`
- [Text evaluation](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/moteur/evaluer.py): `moteur/evaluer.py`
- [Orientation logic](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/moteur/moteur.py): `moteur/moteur.py`
- [Service catalog](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Controller/ServiceApiController.php): `src/Controller/ServiceApiController.php`
- [Service search](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Service/RechercheService.php): `src/Service/RechercheService.php`
- [Procedure catalog](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Service/CatalogueService.php): `src/Service/CatalogueService.php`
- [Procedure API](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Controller/ProcedureApiController.php): `src/Controller/ProcedureApiController.php`

### Appointments and communication

- [Appointment API](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Controller/RendezVousApiController.php): `src/Controller/RendezVousApiController.php`
- [Booking service](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Service/RendezVousService.php): `src/Service/RendezVousService.php`
- [Slot management](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Controller/CreneauApiController.php): `src/Controller/CreneauApiController.php`
- [Notifications](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Service/NotificationService.php): `src/Service/NotificationService.php`
- [SMS simulator](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Service/SmsSimulateur.php): `src/Service/SmsSimulateur.php`

### Administration and records

- [Citizen feedback](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Controller/AvisApiController.php): `src/Controller/AvisApiController.php`
- [User administration](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Controller/UtilisateurAdminApiController.php): `src/Controller/UtilisateurAdminApiController.php`
- [Statistics](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Service/StatistiquesService.php): `src/Service/StatistiquesService.php`
- [Audit journal](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Service/JournalService.php): `src/Service/JournalService.php`
- [Domain records](https://github.com/falyhenintsoaharimino-design/projet-de-stage-_-orient-admin/blob/main/src/Entity/Demande.php): `src/Entity/Demande.php`

### Other components

- **Citizen**
- **PostgreSQL**

## Connections

- Citizen → Symfony API: uses (evidence: `README.md`)
- Symfony API → Authentication: routes requests
- Symfony API → Citizen requests: routes requests
- Citizen requests → Orientation engine: requests recommendation (evidence: `src/Controller/DemandeApiController.php`)
- Orientation engine → Python client: queries engine (evidence: `src/Service/OrientationEngine.php`)
- Orientation engine → Service catalog: loads active services (evidence: `src/Service/OrientationEngine.php`)
- Python client → Python engine API: calls engine
- Python engine API → Text evaluation: evaluates text (evidence: `moteur/app.py`)
- Text evaluation → Orientation logic: uses orientation logic (evidence: `moteur/evaluer.py`)
- Service catalog → Service search: searches services (evidence: `src/Controller/ServiceApiController.php`)
- Procedure API → Procedure catalog: manages procedures (evidence: `src/Controller/ProcedureApiController.php`)
- Procedure API → Service search: searches procedures (evidence: `src/Controller/ProcedureApiController.php`)
- Appointment API → Booking service: manages bookings (evidence: `src/Controller/RendezVousApiController.php`)
- Appointment API → Notifications: sends notifications (evidence: `src/Controller/RendezVousApiController.php`)
- Appointment API → Audit journal: records actions (evidence: `src/Controller/RendezVousApiController.php`)
- Slot management → Audit journal: records slot changes (evidence: `src/Controller/CreneauApiController.php`)
- Notifications → SMS simulator: may send SMS (evidence: `src/Service/NotificationService.php`)
- User administration → Audit journal: records actions (evidence: `src/Controller/UtilisateurAdminApiController.php`)
- Domain records → PostgreSQL: persists records
