# qmbbunao/yvolution architecture

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

- Interactive diagram: https://gitdiagram.com/qmbbunao/yvolution
- Repository: https://github.com/qmbbunao/yvolution

## Overview

Yvolution is a custom-apparel commerce and order-management application. Customers browse the catalog, create and track orders, respond to quotations, and submit feedback; staff review designs, manage quotations and production statuses, and maintain the catalog and stock. Super Admins manage users, integrations, analytics, audit history, and database backups. The graph combines sampled source relationships with README-documented capabilities; links for unsampled workflows are documented rather than inferred from folder names.

Main entry points: [`public/index.php`](https://github.com/qmbbunao/yvolution/blob/main/public/index.php) (Storefront), [`customer/orders/store.php`](https://github.com/qmbbunao/yvolution/blob/main/customer/orders/store.php) (Order Submission), [`admin/orders`](https://github.com/qmbbunao/yvolution/tree/main/admin/orders) (Order Review and Updates), [`customer/orders/create.php`](https://github.com/qmbbunao/yvolution/blob/main/customer/orders/create.php) (Order Creation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_customer["Customer Commerce"]
  node_auth["Authentication<br/>[login.php]"]
  node_order_create["Order Creation<br/>[create.php]"]
  node_order_store["Order Submission<br/>[store.php]"]
  node_order_history["Order History<br/>[index.php]"]
  node_order_detail["Order Detail<br/>[view.php]"]
  node_customer_profile["Customer Profile<br/>[edit.php]"]
  node_public_tracking["Order Tracking<br/>[track.php]"]
end

subgraph group_operations["Order Operations"]
  node_admin_orders["Order Management<br/>[index.php]"]
  node_admin_order_actions["Order Review and Updates"]
  node_returns["Returns"]
  node_inquiries["Contact Inquiries"]
end

subgraph group_catalog["Catalog and Shop"]
  node_catalog_home["Storefront<br/>[index.php]"]
  node_product_search["Catalog Search<br/>[search.php]"]
  node_product_detail["Product Details"]
  node_cart["Shopping Cart<br/>[cart.php]"]
  node_catalog_admin["Catalog Management"]
  node_inventory["Inventory Management"]
  node_shop_content["Shop Content"]
end

subgraph group_administration["Administration"]
  node_admin_dashboard["Admin Dashboard<br/>[dashboard.php]"]
  node_superadmin["Super Admin Tools"]
  node_analytics["Analytics and Audit"]
  node_backup["Database Backups"]
  node_settings["Integration Settings"]
end

subgraph group_shared["Shared Runtime"]
  node_app_bootstrap["Application Bootstrap<br/>[app.php]"]
  node_database_connection[("Database Connection<br/>[database.php]")]
  node_public_layout["Public Layout<br/>[header.php]"]
  node_admin_layout["Admin Layout<br/>[admin_header.php]"]
  node_upload_service["Cloudinary Uploads<br/>[cloudinary.php]"]
  node_email_service["Email Service<br/>[mailer.php]"]
  node_qr_service["QR Tracking Helper<br/>[qr.php]"]
  node_geocode_service["Geocoding Helper<br/>[geocode.php]"]
  node_calendar_service["Calendar Integration"]
end

node_shopper(("Shopper"))
node_cloudinary{{"Cloudinary"}}

node_shopper -->|"signs in"| node_auth
node_auth -.->|"accesses account"| node_order_create
node_shopper -->|"browses"| node_catalog_home
node_catalog_home -->|"opens product"| node_product_detail
node_shopper -->|"searches catalog"| node_product_search
node_shopper -->|"manages cart"| node_cart
node_shopper -->|"starts order"| node_order_create
node_order_create -->|"submits order"| node_order_store
node_order_store -->|"uploads designs"| node_upload_service
node_order_store -->|"generates tracking QR"| node_qr_service
node_order_store -->|"sends confirmation"| node_email_service
node_shopper -->|"views orders"| node_order_history
node_order_history -->|"opens order"| node_order_detail
node_shopper -->|"reviews quotation"| node_order_detail
node_shopper -->|"tracks by QR"| node_public_tracking
node_shopper -->|"edits profile"| node_customer_profile
node_admin_orders -->|"opens order"| node_admin_order_actions
node_admin_order_actions -->|"emails updates"| node_email_service
node_admin_order_actions -.->|"schedules production"| node_calendar_service
node_admin_order_actions -.->|"coordinates returns"| node_returns
node_admin_dashboard -->|"summarizes orders"| node_admin_orders
node_admin_dashboard -->|"shows low stock"| node_inventory
node_catalog_admin -.->|"uploads images"| node_cloudinary
node_shop_content -->|"provides homepage content"| node_catalog_home
node_shopper -->|"submits contact inquiry"| node_inquiries
node_superadmin -->|"reviews metrics and logs"| node_analytics
node_superadmin -->|"manages backups"| node_backup
node_superadmin -->|"configures integrations"| node_settings
node_catalog_home -->|"reads homepage data"| node_database_connection
node_app_bootstrap -->|"loads connection"| node_database_connection
node_app_bootstrap -->|"provides auth guards"| node_auth
node_catalog_home -->|"renders layout"| node_public_layout
node_order_history -->|"renders layout"| node_public_layout
node_admin_orders -->|"renders layout"| node_admin_layout
node_settings -->|"checks connection"| node_calendar_service
node_order_create -.->|"geocodes address"| node_geocode_service

click node_auth "https://github.com/qmbbunao/yvolution/blob/main/auth/login.php"
click node_catalog_home "https://github.com/qmbbunao/yvolution/blob/main/public/index.php"
click node_product_search "https://github.com/qmbbunao/yvolution/blob/main/public/search.php"
click node_product_detail "https://github.com/qmbbunao/yvolution/blob/main/public/product_details.php"
click node_cart "https://github.com/qmbbunao/yvolution/blob/main/public/cart.php"
click node_order_create "https://github.com/qmbbunao/yvolution/blob/main/customer/orders/create.php"
click node_order_store "https://github.com/qmbbunao/yvolution/blob/main/customer/orders/store.php"
click node_order_history "https://github.com/qmbbunao/yvolution/blob/main/customer/orders/index.php"
click node_order_detail "https://github.com/qmbbunao/yvolution/blob/main/customer/orders/view.php"
click node_customer_profile "https://github.com/qmbbunao/yvolution/blob/main/customer/profile/edit.php"
click node_public_tracking "https://github.com/qmbbunao/yvolution/blob/main/customer/orders/track.php"
click node_admin_orders "https://github.com/qmbbunao/yvolution/blob/main/admin/orders/index.php"
click node_admin_order_actions "https://github.com/qmbbunao/yvolution/tree/main/admin/orders"
click node_returns "https://github.com/qmbbunao/yvolution/tree/main/admin/returns"
click node_catalog_admin "https://github.com/qmbbunao/yvolution/tree/main/admin/products"
click node_inventory "https://github.com/qmbbunao/yvolution/tree/main/admin/inventory"
click node_shop_content "https://github.com/qmbbunao/yvolution/tree/main/admin/homepage"
click node_inquiries "https://github.com/qmbbunao/yvolution/tree/main/admin/inquiries"
click node_admin_dashboard "https://github.com/qmbbunao/yvolution/blob/main/admin/dashboard.php"
click node_superadmin "https://github.com/qmbbunao/yvolution/tree/main/superadmin"
click node_analytics "https://github.com/qmbbunao/yvolution/tree/main/superadmin/analytics"
click node_backup "https://github.com/qmbbunao/yvolution/tree/main/superadmin/backups"
click node_settings "https://github.com/qmbbunao/yvolution/tree/main/superadmin/settings"
click node_app_bootstrap "https://github.com/qmbbunao/yvolution/blob/main/config/app.php"
click node_database_connection "https://github.com/qmbbunao/yvolution/blob/main/config/database.php"
click node_public_layout "https://github.com/qmbbunao/yvolution/blob/main/includes/header.php"
click node_admin_layout "https://github.com/qmbbunao/yvolution/blob/main/includes/admin_header.php"
click node_upload_service "https://github.com/qmbbunao/yvolution/blob/main/includes/cloudinary.php"
click node_email_service "https://github.com/qmbbunao/yvolution/blob/main/includes/mailer.php"
click node_qr_service "https://github.com/qmbbunao/yvolution/blob/main/includes/qr.php"
click node_geocode_service "https://github.com/qmbbunao/yvolution/blob/main/includes/geocode.php"
click node_calendar_service "https://github.com/qmbbunao/yvolution/blob/main/includes/google_calendar.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_auth,node_order_create,node_order_store,node_order_history,node_order_detail,node_customer_profile,node_public_tracking toneBlue
class node_admin_orders,node_admin_order_actions,node_returns,node_inquiries toneAmber
class node_catalog_home,node_product_search,node_product_detail,node_cart,node_catalog_admin,node_inventory,node_shop_content toneMint
class node_admin_dashboard,node_superadmin,node_analytics,node_backup,node_settings toneRose
class node_app_bootstrap,node_database_connection,node_public_layout,node_admin_layout,node_upload_service,node_email_service,node_qr_service,node_geocode_service,node_calendar_service,node_shopper,node_cloudinary toneIndigo
```

## Components

### Customer Commerce

- [Authentication](https://github.com/qmbbunao/yvolution/blob/main/auth/login.php): `auth/login.php`
- [Order Creation](https://github.com/qmbbunao/yvolution/blob/main/customer/orders/create.php): `customer/orders/create.php`
- [Order Submission](https://github.com/qmbbunao/yvolution/blob/main/customer/orders/store.php): `customer/orders/store.php`
- [Order History](https://github.com/qmbbunao/yvolution/blob/main/customer/orders/index.php): `customer/orders/index.php`
- [Order Detail](https://github.com/qmbbunao/yvolution/blob/main/customer/orders/view.php): `customer/orders/view.php`
- [Customer Profile](https://github.com/qmbbunao/yvolution/blob/main/customer/profile/edit.php): `customer/profile/edit.php`
- [Order Tracking](https://github.com/qmbbunao/yvolution/blob/main/customer/orders/track.php): `customer/orders/track.php`

### Order Operations

- [Order Management](https://github.com/qmbbunao/yvolution/blob/main/admin/orders/index.php): `admin/orders/index.php`
- [Order Review and Updates](https://github.com/qmbbunao/yvolution/tree/main/admin/orders): `admin/orders`
- [Returns](https://github.com/qmbbunao/yvolution/tree/main/admin/returns): `admin/returns`
- [Contact Inquiries](https://github.com/qmbbunao/yvolution/tree/main/admin/inquiries): `admin/inquiries`

### Catalog and Shop

- [Storefront](https://github.com/qmbbunao/yvolution/blob/main/public/index.php): `public/index.php`
- [Catalog Search](https://github.com/qmbbunao/yvolution/blob/main/public/search.php): `public/search.php`
- [Product Details](https://github.com/qmbbunao/yvolution/blob/main/public/product_details.php): `public/product_details.php`
- [Shopping Cart](https://github.com/qmbbunao/yvolution/blob/main/public/cart.php): `public/cart.php`
- [Catalog Management](https://github.com/qmbbunao/yvolution/tree/main/admin/products): `admin/products`
- [Inventory Management](https://github.com/qmbbunao/yvolution/tree/main/admin/inventory): `admin/inventory`
- [Shop Content](https://github.com/qmbbunao/yvolution/tree/main/admin/homepage): `admin/homepage`

### Administration

- [Admin Dashboard](https://github.com/qmbbunao/yvolution/blob/main/admin/dashboard.php): `admin/dashboard.php`
- [Super Admin Tools](https://github.com/qmbbunao/yvolution/tree/main/superadmin): `superadmin`
- [Analytics and Audit](https://github.com/qmbbunao/yvolution/tree/main/superadmin/analytics): `superadmin/analytics`
- [Database Backups](https://github.com/qmbbunao/yvolution/tree/main/superadmin/backups): `superadmin/backups`
- [Integration Settings](https://github.com/qmbbunao/yvolution/tree/main/superadmin/settings): `superadmin/settings`

### Shared Runtime

- [Application Bootstrap](https://github.com/qmbbunao/yvolution/blob/main/config/app.php): `config/app.php`
- [Database Connection](https://github.com/qmbbunao/yvolution/blob/main/config/database.php): `config/database.php`
- [Public Layout](https://github.com/qmbbunao/yvolution/blob/main/includes/header.php): `includes/header.php`
- [Admin Layout](https://github.com/qmbbunao/yvolution/blob/main/includes/admin_header.php): `includes/admin_header.php`
- [Cloudinary Uploads](https://github.com/qmbbunao/yvolution/blob/main/includes/cloudinary.php): `includes/cloudinary.php`
- [Email Service](https://github.com/qmbbunao/yvolution/blob/main/includes/mailer.php): `includes/mailer.php`
- [QR Tracking Helper](https://github.com/qmbbunao/yvolution/blob/main/includes/qr.php): `includes/qr.php`
- [Geocoding Helper](https://github.com/qmbbunao/yvolution/blob/main/includes/geocode.php): `includes/geocode.php`
- [Calendar Integration](https://github.com/qmbbunao/yvolution/blob/main/includes/google_calendar.php): `includes/google_calendar.php`

### Other components

- **Shopper**
- **Cloudinary**

## Connections

- Shopper → Authentication: signs in (evidence: `README.md`)
- Authentication → Order Creation: accesses account (evidence: `README.md`)
- Shopper → Storefront: browses (evidence: `README.md`)
- Storefront → Product Details: opens product (evidence: `public/index.php`)
- Shopper → Catalog Search: searches catalog
- Shopper → Shopping Cart: manages cart
- Shopper → Order Creation: starts order (evidence: `README.md`)
- Order Creation → Order Submission: submits order (evidence: `README.md`)
- Order Submission → Cloudinary Uploads: uploads designs (evidence: `README.md`)
- Order Submission → QR Tracking Helper: generates tracking QR (evidence: `README.md`)
- Order Submission → Email Service: sends confirmation (evidence: `README.md`)
- Shopper → Order History: views orders (evidence: `customer/orders/index.php`)
- Order History → Order Detail: opens order (evidence: `customer/orders/index.php`)
- Shopper → Order Detail: reviews quotation (evidence: `README.md`)
- Shopper → Order Tracking: tracks by QR (evidence: `README.md`)
- Shopper → Customer Profile: edits profile (evidence: `README.md`)
- Order Management → Order Review and Updates: opens order (evidence: `README.md`)
- Order Review and Updates → Email Service: emails updates (evidence: `README.md`)
- Order Review and Updates → Calendar Integration: schedules production
- Order Review and Updates → Returns: coordinates returns
- Admin Dashboard → Order Management: summarizes orders (evidence: `README.md`)
- Admin Dashboard → Inventory Management: shows low stock (evidence: `README.md`)
- Catalog Management → Cloudinary: uploads images (evidence: `README.md`)
- Shop Content → Storefront: provides homepage content (evidence: `README.md`)
- Shopper → Contact Inquiries: submits contact inquiry (evidence: `README.md`)
- Super Admin Tools → Analytics and Audit: reviews metrics and logs (evidence: `README.md`)
- Super Admin Tools → Database Backups: manages backups (evidence: `README.md`)
- Super Admin Tools → Integration Settings: configures integrations (evidence: `README.md`)
- Storefront → Database Connection: reads homepage data (evidence: `public/index.php`)
- Application Bootstrap → Database Connection: loads connection (evidence: `config/app.php`)
- Application Bootstrap → Authentication: provides auth guards (evidence: `config/app.php`)
- Storefront → Public Layout: renders layout (evidence: `public/index.php`)
- Order History → Public Layout: renders layout (evidence: `customer/orders/index.php`)
- Order Management → Admin Layout: renders layout (evidence: `admin/orders/index.php`)
- Integration Settings → Calendar Integration: checks connection (evidence: `superadmin/settings/index.php`)
- Order Creation → Geocoding Helper: geocodes address (evidence: `README.md`)
