# 24-70627-byte/flower_system architecture

> Architecture diagram of the GitHub repository 24-70627-byte/flower_system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/24-70627-byte/flower_system
- Repository: https://github.com/24-70627-byte/flower_system

## Overview

Nicole’s Flowers & Greens is a PHP storefront and shop-management application. Customers browse bouquets, maintain a cart, submit pickup and payment details, and can review orders, manage their account, or contact the shop; the owner manages catalog, orders, customers, settings, and customer messages. The sampled checkout shows order and item writes and a redirect to the completion page. Several pages are indexed but not excerpted, so their internal calls and data flows are not inferred.

Main entry points: [`includes/header.php`](https://github.com/24-70627-byte/flower_system/blob/main/includes/header.php) (Storefront layout), [`config.php`](https://github.com/24-70627-byte/flower_system/blob/main/config.php) (Session and helpers), [`checkout.php`](https://github.com/24-70627-byte/flower_system/blob/main/checkout.php) (Pickup checkout), [`admin/header.php`](https://github.com/24-70627-byte/flower_system/blob/main/admin/header.php) (Admin layout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront"]
  node_home["Home page<br/>[index.php]"]
  node_catalog["Bouquet catalog<br/>[products.php]"]
  node_contact["Contact shop<br/>[contact.php]"]
end

subgraph group_customer["Customer journey"]
  node_cart["Shopping cart<br/>[cart.php]"]
  node_cart_action["Cart updates<br/>[cart_action.php]"]
  node_checkout["Pickup checkout<br/>[checkout.php]"]
  node_completion["Order completion<br/>[order_complete.php]"]
  node_customer_orders["Order history<br/>[orders.php]"]
  node_account["Customer profile<br/>[profile.php]"]
  node_registration["Registration<br/>[register.php]"]
  node_login["Customer login<br/>[login.php]"]
  node_logout["Sign out<br/>[logout.php]"]
end

subgraph group_admin["Shop management"]
  node_owner_login["Owner login<br/>[owner_login.php]"]
  node_admin_dashboard["Admin dashboard<br/>[dashboard.php]"]
  node_bouquet_admin["Bouquet management<br/>[bouquets.php]"]
  node_order_admin["Order management<br/>[orders.php]"]
  node_inbox_admin["Message inbox<br/>[inbox.php]"]
  node_customer_admin["Customer management<br/>[customers.php]"]
  node_settings_admin["Shop settings<br/>[settings.php]"]
  node_admin_order_items["Order item view<br/>[order_items.php]"]
end

subgraph group_platform["Shared services"]
  node_public_layout["Storefront layout<br/>[header.php]"]
  node_public_footer["Storefront footer<br/>[footer.php]"]
  node_admin_layout["Admin layout<br/>[header.php]"]
  node_admin_footer["Admin footer<br/>[footer.php]"]
  node_runtime_config["Session and helpers<br/>[config.php]"]
  node_database[("MySQL data<br/>[schema.sql]")]
end

node_shopper(("Shopper"))
node_owner(("Shop owner"))

node_shopper -->|"visits"| node_home
node_home -->|"renders via"| node_public_layout
node_home -->|"links to"| node_catalog
node_public_layout -->|"loads"| node_runtime_config
node_cart -->|"renders via"| node_public_layout
node_cart -->|"posts updates"| node_cart_action
node_checkout -->|"loads"| node_runtime_config
node_checkout -->|"writes orders and items"| node_database
node_checkout -->|"redirects after order"| node_completion
node_checkout -->|"renders via"| node_public_layout
node_contact -->|"renders via"| node_public_layout
node_customer_orders -->|"renders via"| node_public_layout
node_account -->|"renders via"| node_public_layout
node_login -->|"loads"| node_runtime_config
node_registration -->|"loads"| node_runtime_config
node_logout -->|"loads"| node_runtime_config
node_owner_login -->|"loads"| node_runtime_config
node_bouquet_admin -->|"renders via"| node_admin_layout
node_bouquet_admin -->|"manages bouquets"| node_database
node_order_admin -->|"renders via"| node_admin_layout
node_order_admin -->|"queries orders"| node_database
node_inbox_admin -->|"renders via"| node_admin_layout
node_inbox_admin -->|"manages messages"| node_database
node_admin_layout -->|"loads"| node_runtime_config

click node_home "https://github.com/24-70627-byte/flower_system/blob/main/index.php"
click node_catalog "https://github.com/24-70627-byte/flower_system/blob/main/products.php"
click node_contact "https://github.com/24-70627-byte/flower_system/blob/main/contact.php"
click node_cart "https://github.com/24-70627-byte/flower_system/blob/main/cart.php"
click node_cart_action "https://github.com/24-70627-byte/flower_system/blob/main/cart_action.php"
click node_checkout "https://github.com/24-70627-byte/flower_system/blob/main/checkout.php"
click node_completion "https://github.com/24-70627-byte/flower_system/blob/main/order_complete.php"
click node_customer_orders "https://github.com/24-70627-byte/flower_system/blob/main/orders.php"
click node_account "https://github.com/24-70627-byte/flower_system/blob/main/profile.php"
click node_registration "https://github.com/24-70627-byte/flower_system/blob/main/register.php"
click node_login "https://github.com/24-70627-byte/flower_system/blob/main/login.php"
click node_logout "https://github.com/24-70627-byte/flower_system/blob/main/logout.php"
click node_owner_login "https://github.com/24-70627-byte/flower_system/blob/main/owner_login.php"
click node_admin_dashboard "https://github.com/24-70627-byte/flower_system/blob/main/admin/dashboard.php"
click node_bouquet_admin "https://github.com/24-70627-byte/flower_system/blob/main/admin/bouquets.php"
click node_order_admin "https://github.com/24-70627-byte/flower_system/blob/main/admin/orders.php"
click node_inbox_admin "https://github.com/24-70627-byte/flower_system/blob/main/admin/inbox.php"
click node_customer_admin "https://github.com/24-70627-byte/flower_system/blob/main/admin/customers.php"
click node_settings_admin "https://github.com/24-70627-byte/flower_system/blob/main/admin/settings.php"
click node_admin_order_items "https://github.com/24-70627-byte/flower_system/blob/main/admin/order_items.php"
click node_public_layout "https://github.com/24-70627-byte/flower_system/blob/main/includes/header.php"
click node_public_footer "https://github.com/24-70627-byte/flower_system/blob/main/includes/footer.php"
click node_admin_layout "https://github.com/24-70627-byte/flower_system/blob/main/admin/header.php"
click node_admin_footer "https://github.com/24-70627-byte/flower_system/blob/main/admin/footer.php"
click node_runtime_config "https://github.com/24-70627-byte/flower_system/blob/main/config.php"
click node_database "https://github.com/24-70627-byte/flower_system/blob/main/db/schema.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_catalog,node_contact toneBlue
class node_cart,node_cart_action,node_checkout,node_completion,node_customer_orders,node_account,node_registration,node_login,node_logout toneAmber
class node_owner_login,node_admin_dashboard,node_bouquet_admin,node_order_admin,node_inbox_admin,node_customer_admin,node_settings_admin,node_admin_order_items toneMint
class node_public_layout,node_public_footer,node_admin_layout,node_admin_footer,node_runtime_config,node_database toneRose
class node_shopper,node_owner toneIndigo
```

## Components

### Storefront

- [Home page](https://github.com/24-70627-byte/flower_system/blob/main/index.php): `index.php`
- [Bouquet catalog](https://github.com/24-70627-byte/flower_system/blob/main/products.php): `products.php`
- [Contact shop](https://github.com/24-70627-byte/flower_system/blob/main/contact.php): `contact.php`

### Customer journey

- [Shopping cart](https://github.com/24-70627-byte/flower_system/blob/main/cart.php): `cart.php`
- [Cart updates](https://github.com/24-70627-byte/flower_system/blob/main/cart_action.php): `cart_action.php`
- [Pickup checkout](https://github.com/24-70627-byte/flower_system/blob/main/checkout.php): `checkout.php`
- [Order completion](https://github.com/24-70627-byte/flower_system/blob/main/order_complete.php): `order_complete.php`
- [Order history](https://github.com/24-70627-byte/flower_system/blob/main/orders.php): `orders.php`
- [Customer profile](https://github.com/24-70627-byte/flower_system/blob/main/profile.php): `profile.php`
- [Registration](https://github.com/24-70627-byte/flower_system/blob/main/register.php): `register.php`
- [Customer login](https://github.com/24-70627-byte/flower_system/blob/main/login.php): `login.php`
- [Sign out](https://github.com/24-70627-byte/flower_system/blob/main/logout.php): `logout.php`

### Shop management

- [Owner login](https://github.com/24-70627-byte/flower_system/blob/main/owner_login.php): `owner_login.php`
- [Admin dashboard](https://github.com/24-70627-byte/flower_system/blob/main/admin/dashboard.php): `admin/dashboard.php`
- [Bouquet management](https://github.com/24-70627-byte/flower_system/blob/main/admin/bouquets.php): `admin/bouquets.php`
- [Order management](https://github.com/24-70627-byte/flower_system/blob/main/admin/orders.php): `admin/orders.php`
- [Message inbox](https://github.com/24-70627-byte/flower_system/blob/main/admin/inbox.php): `admin/inbox.php`
- [Customer management](https://github.com/24-70627-byte/flower_system/blob/main/admin/customers.php): `admin/customers.php`
- [Shop settings](https://github.com/24-70627-byte/flower_system/blob/main/admin/settings.php): `admin/settings.php`
- [Order item view](https://github.com/24-70627-byte/flower_system/blob/main/admin/order_items.php): `admin/order_items.php`

### Shared services

- [Storefront layout](https://github.com/24-70627-byte/flower_system/blob/main/includes/header.php): `includes/header.php`
- [Storefront footer](https://github.com/24-70627-byte/flower_system/blob/main/includes/footer.php): `includes/footer.php`
- [Admin layout](https://github.com/24-70627-byte/flower_system/blob/main/admin/header.php): `admin/header.php`
- [Admin footer](https://github.com/24-70627-byte/flower_system/blob/main/admin/footer.php): `admin/footer.php`
- [Session and helpers](https://github.com/24-70627-byte/flower_system/blob/main/config.php): `config.php`
- [MySQL data](https://github.com/24-70627-byte/flower_system/blob/main/db/schema.sql): `db/schema.sql`

### Other components

- **Shopper**
- **Shop owner**

## Connections

- Shopper → Home page: visits (evidence: `index.php`)
- Home page → Storefront layout: renders via (evidence: `index.php`)
- Home page → Bouquet catalog: links to (evidence: `index.php`)
- Storefront layout → Session and helpers: loads (evidence: `includes/header.php`)
- Shopping cart → Storefront layout: renders via (evidence: `cart.php`)
- Shopping cart → Cart updates: posts updates (evidence: `cart.php`)
- Pickup checkout → Session and helpers: loads (evidence: `checkout.php`)
- Pickup checkout → MySQL data: writes orders and items (evidence: `checkout.php`)
- Pickup checkout → Order completion: redirects after order (evidence: `checkout.php`)
- Pickup checkout → Storefront layout: renders via (evidence: `checkout.php`)
- Contact shop → Storefront layout: renders via (evidence: `contact.php`)
- Order history → Storefront layout: renders via (evidence: `orders.php`)
- Customer profile → Storefront layout: renders via (evidence: `profile.php`)
- Customer login → Session and helpers: loads (evidence: `login.php`)
- Registration → Session and helpers: loads (evidence: `register.php`)
- Sign out → Session and helpers: loads (evidence: `logout.php`)
- Owner login → Session and helpers: loads (evidence: `owner_login.php`)
- Bouquet management → Admin layout: renders via (evidence: `admin/bouquets.php`)
- Bouquet management → MySQL data: manages bouquets (evidence: `admin/bouquets.php`)
- Order management → Admin layout: renders via (evidence: `admin/orders.php`)
- Order management → MySQL data: queries orders (evidence: `admin/orders.php`)
- Message inbox → Admin layout: renders via (evidence: `admin/inbox.php`)
- Message inbox → MySQL data: manages messages (evidence: `admin/inbox.php`)
- Admin layout → Session and helpers: loads (evidence: `admin/header.php`)
