# alcantararhealyncodes/hanrhecious-diner architecture

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

- Interactive diagram: https://gitdiagram.com/alcantararhealyncodes/hanrhecious-diner
- Repository: https://github.com/alcantararhealyncodes/hanrhecious-diner

## Overview

Hanerhecious Diner is a PHP/MySQL restaurant ordering website. Customers register and verify accounts, browse dishes, apply coupons, place Cash on Delivery orders, and follow order status; administrators manage orders, menu, coupons, customers, and support. Support requests and public help/privacy pages are additional product branches. The sampled pages are largely self-contained PHP entry points. Relationship evidence is limited: the README documents capabilities, and the excerpts directly show signup and resend verification invoking the email helper; unsampled page-to-page and database interactions are not asserted.

Main entry points: [`database.sql`](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/database.sql) (MySQL data store), [`send_email.php`](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/send_email.php) (Email sender), [`menu.php`](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/menu.php) (Browse menu and cart), [`checkout.php`](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/checkout.php) (Coupon and checkout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_customer["Customer ordering"]
  node_home["Restaurant home<br/>[index.php]"]
  node_menu["Browse menu and cart<br/>[menu.php]"]
  node_checkout["Coupon and checkout<br/>[checkout.php]"]
  node_success["Order confirmation<br/>[order_success.php]"]
  node_history["Order history<br/>[order_history.php]"]
  node_details["Order details and status<br/>[order_details.php]"]
  node_customer_dashboard["Customer dashboard"]
end

subgraph group_identity["Accounts and email"]
  node_signup["Registration<br/>[signup.php]"]
  node_verification["Email verification<br/>[verify_email.php]"]
  node_resend["Resend verification"]
  node_email_helper["Email sender<br/>[send_email.php]"]
  node_login["Sign in<br/>[login.php]"]
  node_logout["Sign out<br/>[logout.php]"]
end

subgraph group_admin["Administration"]
  node_admin_dashboard["Order management"]
  node_admin_menu["Menu management<br/>[admin_menu.php]"]
  node_admin_coupons["Coupon management<br/>[admin_coupons.php]"]
  node_admin_customers["Customer listing"]
end

subgraph group_support_info["Support and information"]
  node_customer_support["Submit support request"]
  node_my_support["Support requests and replies"]
  node_admin_support["Support management<br/>[admin_support.php]"]
  node_help["Help center<br/>[help_center.php]"]
  node_privacy["Privacy policy<br/>[privacy_policy.php]"]
end

node_visitor(("Visitor"))
node_smtp{{"SMTP mail service"}}
node_database[("MySQL data store<br/>[database.sql]")]

node_visitor -->|"browses"| node_home
node_visitor -->|"registers"| node_signup
node_visitor -->|"signs in"| node_login
node_visitor -->|"browses dishes"| node_menu
node_visitor -->|"seeks help"| node_help
node_visitor -->|"reads policy"| node_privacy
node_signup -->|"sends verification"| node_email_helper
node_resend -->|"sends link"| node_email_helper
node_email_helper -->|"sends mail"| node_smtp
node_menu -->|"continues ordering"| node_checkout
node_checkout -.->|"confirms order"| node_success
node_success -->|"tracks order"| node_history
node_history -->|"views details"| node_details
node_visitor -->|"requests support"| node_customer_support
node_customer_support -->|"views replies"| node_my_support
node_admin_dashboard -.->|"manages orders"| node_database
node_admin_menu -.->|"manages dishes"| node_database
node_admin_coupons -.->|"manages coupons"| node_database
node_admin_customers -.->|"lists accounts"| node_database
node_admin_support -.->|"manages requests"| node_database
node_visitor -->|"administers"| node_admin_dashboard
node_visitor -->|"administers"| node_admin_menu
node_visitor -->|"administers"| node_admin_coupons
node_visitor -->|"administers"| node_admin_customers
node_visitor -->|"administers"| node_admin_support

click node_signup "https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/signup.php"
click node_verification "https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/verify_email.php"
click node_resend "https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/resend_verification.php"
click node_email_helper "https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/send_email.php"
click node_login "https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/login.php"
click node_logout "https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/logout.php"
click node_home "https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/index.php"
click node_menu "https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/menu.php"
click node_checkout "https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/checkout.php"
click node_success "https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/order_success.php"
click node_history "https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/order_history.php"
click node_details "https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/order_details.php"
click node_customer_dashboard "https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/customer_dashboard.php"
click node_admin_dashboard "https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/admin_dashboard.php"
click node_admin_menu "https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/admin_menu.php"
click node_admin_coupons "https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/admin_coupons.php"
click node_admin_customers "https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/admin_customers.php"
click node_customer_support "https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/customer_support.php"
click node_my_support "https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/my_support_requests.php"
click node_admin_support "https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/admin_support.php"
click node_help "https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/help_center.php"
click node_privacy "https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/privacy_policy.php"
click node_database "https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/database.sql"

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_home,node_menu,node_checkout,node_success,node_history,node_details,node_customer_dashboard toneBlue
class node_signup,node_verification,node_resend,node_email_helper,node_login,node_logout,node_database toneAmber
class node_admin_dashboard,node_admin_menu,node_admin_coupons,node_admin_customers toneMint
class node_customer_support,node_my_support,node_admin_support,node_help,node_privacy toneRose
class node_visitor,node_smtp toneIndigo
```

## Components

### Customer ordering

- [Restaurant home](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/index.php): `index.php`
- [Browse menu and cart](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/menu.php): `menu.php`
- [Coupon and checkout](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/checkout.php): `checkout.php`
- [Order confirmation](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/order_success.php): `order_success.php`
- [Order history](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/order_history.php): `order_history.php`
- [Order details and status](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/order_details.php): `order_details.php`
- [Customer dashboard](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/customer_dashboard.php): `customer_dashboard.php`

### Accounts and email

- [Registration](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/signup.php): `signup.php`
- [Email verification](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/verify_email.php): `verify_email.php`
- [Resend verification](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/resend_verification.php): `resend_verification.php`
- [Email sender](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/send_email.php): `send_email.php`
- [Sign in](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/login.php): `login.php`
- [Sign out](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/logout.php): `logout.php`

### Administration

- [Order management](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/admin_dashboard.php): `admin_dashboard.php`
- [Menu management](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/admin_menu.php): `admin_menu.php`
- [Coupon management](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/admin_coupons.php): `admin_coupons.php`
- [Customer listing](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/admin_customers.php): `admin_customers.php`

### Support and information

- [Submit support request](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/customer_support.php): `customer_support.php`
- [Support requests and replies](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/my_support_requests.php): `my_support_requests.php`
- [Support management](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/admin_support.php): `admin_support.php`
- [Help center](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/help_center.php): `help_center.php`
- [Privacy policy](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/privacy_policy.php): `privacy_policy.php`

### Other components

- **Visitor**
- **SMTP mail service**
- [MySQL data store](https://github.com/alcantararhealyncodes/hanrhecious-diner/blob/main/database.sql): `database.sql`

## Connections

- Visitor → Restaurant home: browses (evidence: `README.md`)
- Visitor → Registration: registers (evidence: `README.md`)
- Visitor → Sign in: signs in (evidence: `README.md`)
- Visitor → Browse menu and cart: browses dishes (evidence: `README.md`)
- Visitor → Help center: seeks help (evidence: `README.md`)
- Visitor → Privacy policy: reads policy (evidence: `README.md`)
- Registration → Email sender: sends verification (evidence: `signup.php`)
- Resend verification → Email sender: sends link (evidence: `resend_verification.php`)
- Email sender → SMTP mail service: sends mail (evidence: `send_email.php`)
- Browse menu and cart → Coupon and checkout: continues ordering (evidence: `README.md`)
- Coupon and checkout → Order confirmation: confirms order
- Order confirmation → Order history: tracks order (evidence: `README.md`)
- Order history → Order details and status: views details (evidence: `README.md`)
- Visitor → Submit support request: requests support (evidence: `README.md`)
- Submit support request → Support requests and replies: views replies (evidence: `README.md`)
- Order management → MySQL data store: manages orders
- Menu management → MySQL data store: manages dishes
- Coupon management → MySQL data store: manages coupons
- Customer listing → MySQL data store: lists accounts
- Support management → MySQL data store: manages requests
- Visitor → Order management: administers (evidence: `README.md`)
- Visitor → Menu management: administers (evidence: `README.md`)
- Visitor → Coupon management: administers (evidence: `README.md`)
- Visitor → Customer listing: administers (evidence: `README.md`)
- Visitor → Support management: administers (evidence: `README.md`)
