# danielcute/2a_winx architecture

> Architecture diagram of the GitHub repository danielcute/2a_winx, 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/danielcute/2a_winx
- Repository: https://github.com/danielcute/2a_winx

## Overview

SINTA is a PHP/MySQL event-planning and wardrobe-rental application. Customers enter through the public router, authenticate, plan an event with occasion, package, theme and wardrobe choices, then submit a booking and make payments; admins manage inventory and bookings. The graph includes messaging, feedback, notifications, and receipt/payment capabilities documented or indexed in the repository. Several routes and integrations are unsampled, so those relationships are omitted unless the README or shown references support them.

Main entry points: [`public/index.php`](https://github.com/danielcute/2a_winx/blob/main/public/index.php) (Public router), [`app/controllers/CheckoutController.php`](https://github.com/danielcute/2a_winx/blob/main/app/controllers/CheckoutController.php) (Booking checkout), [`services/PaymentService.php`](https://github.com/danielcute/2a_winx/blob/main/services/PaymentService.php) (Payment processing), [`app/models/Wardrobe.php`](https://github.com/danielcute/2a_winx/blob/main/app/models/Wardrobe.php) (Wardrobe inventory)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_router["Public router<br/>[index.php]"]
  node_auth["Account and 2FA<br/>[AuthController.php]"]
  node_user_model[("User profiles<br/>[User.php]")]
end

subgraph group_planning["Event planning"]
  node_occasion["Occasion selection"]
  node_packages[("Packages<br/>[Package.php]")]
  node_customize_controller["Event customization"]
  node_customization[("Themes and palettes<br/>[Customization.php]")]
  node_wardrobe_controller["Wardrobe catalog"]
  node_wardrobe[("Wardrobe inventory<br/>[Wardrobe.php]")]
  node_selection["Wardrobe selection"]
end

subgraph group_commerce["Booking and payment"]
  node_checkout_controller["Booking checkout"]
  node_plans[("Event plans<br/>[Plan.php]")]
  node_booking[("Booking records<br/>[Booking.php]")]
  node_payment_service["Payment processing<br/>[PaymentService.php]"]
  node_payment_gateways["Payment gateways"]
  node_payments[("Payment records<br/>[Payment.php]")]
  node_receipts[("Payment receipts<br/>[Receipt.php]")]
end

subgraph group_operations["Administration and communication"]
  node_admin_wardrobe["Inventory administration"]
  node_messages[("User messaging<br/>[Message.php]")]
  node_notifications[("Notifications<br/>[Notification.php]")]
  node_feedback[("Customer feedback<br/>[Feedback.php]")]
end

node_customer(("Customer"))
node_admin(("Administrator"))

node_customer -->|"uses"| node_router
node_admin -->|"uses"| node_router
node_router -->|"routes to"| node_auth
node_auth -->|"authenticates"| node_user_model
node_router -.->|"routes to"| node_occasion
node_router -->|"routes to"| node_customize_controller
node_customize_controller -->|"calls"| node_customization
node_router -->|"routes to"| node_wardrobe_controller
node_wardrobe_controller -->|"uses"| node_wardrobe
node_router -->|"routes to"| node_selection
node_selection -->|"uses"| node_wardrobe
node_router -->|"routes to"| node_checkout_controller
node_checkout_controller -->|"creates"| node_plans
node_checkout_controller -->|"stores colors"| node_customization
node_checkout_controller -->|"notifies admin"| node_notifications
node_customer -.->|"browses"| node_packages
node_admin -->|"manages inventory"| node_admin_wardrobe
node_admin_wardrobe -->|"updates"| node_wardrobe
node_payment_service -->|"records payment"| node_payments
node_payment_service -->|"selects gateway"| node_payment_gateways
node_payment_service -->|"creates receipts"| node_receipts
node_customer -.->|"communicates"| node_messages
node_customer -->|"submits feedback"| node_feedback
node_router -.->|"routes messages"| node_messages
node_router -->|"handles feedback"| node_feedback

click node_router "https://github.com/danielcute/2a_winx/blob/main/public/index.php"
click node_auth "https://github.com/danielcute/2a_winx/blob/main/app/controllers/AuthController.php"
click node_user_model "https://github.com/danielcute/2a_winx/blob/main/app/models/User.php"
click node_occasion "https://github.com/danielcute/2a_winx/blob/main/app/controllers/OccasionController.php"
click node_packages "https://github.com/danielcute/2a_winx/blob/main/app/models/Package.php"
click node_customize_controller "https://github.com/danielcute/2a_winx/blob/main/app/controllers/CustomizeController.php"
click node_customization "https://github.com/danielcute/2a_winx/blob/main/app/models/Customization.php"
click node_wardrobe_controller "https://github.com/danielcute/2a_winx/blob/main/app/controllers/WardrobeController.php"
click node_wardrobe "https://github.com/danielcute/2a_winx/blob/main/app/models/Wardrobe.php"
click node_selection "https://github.com/danielcute/2a_winx/blob/main/app/controllers/WardrobeSelectionController.php"
click node_checkout_controller "https://github.com/danielcute/2a_winx/blob/main/app/controllers/CheckoutController.php"
click node_plans "https://github.com/danielcute/2a_winx/blob/main/app/models/Plan.php"
click node_booking "https://github.com/danielcute/2a_winx/blob/main/app/models/Booking.php"
click node_payment_service "https://github.com/danielcute/2a_winx/blob/main/services/PaymentService.php"
click node_payment_gateways "https://github.com/danielcute/2a_winx/blob/main/services/PaymentGateways.php"
click node_payments "https://github.com/danielcute/2a_winx/blob/main/app/models/Payment.php"
click node_receipts "https://github.com/danielcute/2a_winx/blob/main/app/models/Receipt.php"
click node_admin_wardrobe "https://github.com/danielcute/2a_winx/blob/main/app/controllers/AdminWardrobeController.php"
click node_messages "https://github.com/danielcute/2a_winx/blob/main/app/models/Message.php"
click node_notifications "https://github.com/danielcute/2a_winx/blob/main/app/models/Notification.php"
click node_feedback "https://github.com/danielcute/2a_winx/blob/main/app/models/Feedback.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_router,node_auth,node_user_model toneBlue
class node_occasion,node_packages,node_customize_controller,node_customization,node_wardrobe_controller,node_wardrobe,node_selection toneAmber
class node_checkout_controller,node_plans,node_booking,node_payment_service,node_payment_gateways,node_payments,node_receipts toneMint
class node_admin_wardrobe,node_messages,node_notifications,node_feedback toneRose
class node_customer,node_admin toneIndigo
```

## Components

### Application entry

- [Public router](https://github.com/danielcute/2a_winx/blob/main/public/index.php): `public/index.php`
- [Account and 2FA](https://github.com/danielcute/2a_winx/blob/main/app/controllers/AuthController.php): `app/controllers/AuthController.php`
- [User profiles](https://github.com/danielcute/2a_winx/blob/main/app/models/User.php): `app/models/User.php`

### Event planning

- [Occasion selection](https://github.com/danielcute/2a_winx/blob/main/app/controllers/OccasionController.php): `app/controllers/OccasionController.php`
- [Packages](https://github.com/danielcute/2a_winx/blob/main/app/models/Package.php): `app/models/Package.php`
- [Event customization](https://github.com/danielcute/2a_winx/blob/main/app/controllers/CustomizeController.php): `app/controllers/CustomizeController.php`
- [Themes and palettes](https://github.com/danielcute/2a_winx/blob/main/app/models/Customization.php): `app/models/Customization.php`
- [Wardrobe catalog](https://github.com/danielcute/2a_winx/blob/main/app/controllers/WardrobeController.php): `app/controllers/WardrobeController.php`
- [Wardrobe inventory](https://github.com/danielcute/2a_winx/blob/main/app/models/Wardrobe.php): `app/models/Wardrobe.php`
- [Wardrobe selection](https://github.com/danielcute/2a_winx/blob/main/app/controllers/WardrobeSelectionController.php): `app/controllers/WardrobeSelectionController.php`

### Booking and payment

- [Booking checkout](https://github.com/danielcute/2a_winx/blob/main/app/controllers/CheckoutController.php): `app/controllers/CheckoutController.php`
- [Event plans](https://github.com/danielcute/2a_winx/blob/main/app/models/Plan.php): `app/models/Plan.php`
- [Booking records](https://github.com/danielcute/2a_winx/blob/main/app/models/Booking.php): `app/models/Booking.php`
- [Payment processing](https://github.com/danielcute/2a_winx/blob/main/services/PaymentService.php): `services/PaymentService.php`
- [Payment gateways](https://github.com/danielcute/2a_winx/blob/main/services/PaymentGateways.php): `services/PaymentGateways.php`
- [Payment records](https://github.com/danielcute/2a_winx/blob/main/app/models/Payment.php): `app/models/Payment.php`
- [Payment receipts](https://github.com/danielcute/2a_winx/blob/main/app/models/Receipt.php): `app/models/Receipt.php`

### Administration and communication

- [Inventory administration](https://github.com/danielcute/2a_winx/blob/main/app/controllers/AdminWardrobeController.php): `app/controllers/AdminWardrobeController.php`
- [User messaging](https://github.com/danielcute/2a_winx/blob/main/app/models/Message.php): `app/models/Message.php`
- [Notifications](https://github.com/danielcute/2a_winx/blob/main/app/models/Notification.php): `app/models/Notification.php`
- [Customer feedback](https://github.com/danielcute/2a_winx/blob/main/app/models/Feedback.php): `app/models/Feedback.php`

### Other components

- **Customer**
- **Administrator**

## Connections

- Customer → Public router: uses (evidence: `README.md`)
- Administrator → Public router: uses (evidence: `README.md`)
- Public router → Account and 2FA: routes to
- Account and 2FA → User profiles: authenticates (evidence: `app/controllers/AuthController.php`)
- Public router → Occasion selection: routes to
- Public router → Event customization: routes to (evidence: `public/index.php`)
- Event customization → Themes and palettes: calls (evidence: `app/controllers/CustomizeController.php`)
- Public router → Wardrobe catalog: routes to (evidence: `public/index.php`)
- Wardrobe catalog → Wardrobe inventory: uses (evidence: `app/controllers/WardrobeController.php`)
- Public router → Wardrobe selection: routes to (evidence: `public/index.php`)
- Wardrobe selection → Wardrobe inventory: uses (evidence: `app/controllers/WardrobeSelectionController.php`)
- Public router → Booking checkout: routes to (evidence: `public/index.php`)
- Booking checkout → Event plans: creates (evidence: `app/controllers/CheckoutController.php`)
- Booking checkout → Themes and palettes: stores colors (evidence: `app/controllers/CheckoutController.php`)
- Booking checkout → Notifications: notifies admin (evidence: `app/controllers/CheckoutController.php`)
- Customer → Packages: browses (evidence: `README.md`)
- Administrator → Inventory administration: manages inventory (evidence: `README.md`)
- Inventory administration → Wardrobe inventory: updates (evidence: `app/controllers/AdminWardrobeController.php`)
- Payment processing → Payment records: records payment (evidence: `services/PaymentService.php`)
- Payment processing → Payment gateways: selects gateway (evidence: `services/PaymentService.php`)
- Payment processing → Payment receipts: creates receipts (evidence: `services/PaymentService.php`)
- Customer → User messaging: communicates (evidence: `README.md`)
- Customer → Customer feedback: submits feedback
- Public router → User messaging: routes messages
- Public router → Customer feedback: handles feedback (evidence: `public/index.php`)
