# jambtc/yii2-fidelity.dashboard architecture

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

- Interactive diagram: https://gitdiagram.com/jambtc/yii2-fidelity.dashboard
- Repository: https://github.com/jambtc/yii2-fidelity.dashboard

## Overview

Fidelize Dashboard is a Yii2 web application for managing loyalty programs, merchants, stores, point-of-sale activity, and blockchain configuration. The main user workflow is account registration or sign-in, followed by dashboard and administrative operations on those records; controllers handle requests and ActiveRecord models represent persisted data. The tree also shows invoices, subscriptions, notifications, API keys, and rules-engine requests. Relationships below are limited to README statements, excerpts, and SOURCE INDEX references; several controller and integration details were not sampled.

Main entry points: [`controllers/SiteController.php`](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/controllers/SiteController.php) (Site and access), [`controllers/BackendController.php`](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/controllers/BackendController.php) (Admin dashboard), [`models/Stores.php`](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Stores.php) (Stores), [`models/Nodes.php`](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Nodes.php) (Blockchain nodes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Accounts and dashboard"]
  node_site["Site and access<br/>[SiteController.php]"]
  node_users["User accounts<br/>[Users.php]"]
  node_signup["Registration<br/>[SignupForm.php]"]
  node_dashboard["Admin dashboard"]
end

subgraph group_commerce["Loyalty operations"]
  node_merchants["Merchants<br/>[Merchants.php]"]
  node_stores["Stores<br/>[Stores.php]"]
  node_pos["Point of sale<br/>[Pos.php]"]
  node_invoices["Invoices<br/>[Invoices.php]"]
  node_subscriptions["Subscriptions"]
  node_apikeys["API keys<br/>[Apikeys.php]"]
end

subgraph group_platform["Blockchain settings"]
  node_blockchains["Blockchains<br/>[Blockchains.php]"]
  node_nodes["Blockchain nodes<br/>[Nodes.php]"]
  node_host["Host settings<br/>[Host.php]"]
  node_owner["Owner settings<br/>[Owner.php]"]
  node_webapp["Web app utilities<br/>[WebApp.php]"]
end

subgraph group_services["Messaging and rules"]
  node_rules["Rules engines<br/>[RulesEngines.php]"]
  node_requests["Engine requests"]
  node_notifications["Notifications<br/>[Notifications.php]"]
  node_readers["Notification readers"]
  node_logs["Logs<br/>[Logs.php]"]
end

node_operator(("Dashboard user"))
node_database[("Application database")]

node_operator -->|"uses"| node_site
node_operator -->|"manages"| node_dashboard
node_site -->|"registers with"| node_signup
node_site -->|"authenticates"| node_users
node_site -->|"loads"| node_invoices
node_dashboard -->|"uses"| node_notifications
node_dashboard -->|"uses"| node_readers
node_dashboard -->|"uses"| node_webapp
node_signup -->|"creates"| node_users
node_stores -->|"references"| node_merchants
node_stores -->|"references"| node_blockchains
node_nodes -->|"references"| node_blockchains
node_webapp -->|"uses"| node_nodes
node_rules -->|"encrypts with"| node_webapp
node_requests -->|"searches"| node_rules
node_notifications -->|"references"| node_readers
node_users -->|"persists via"| node_database
node_merchants -->|"persists via"| node_database
node_stores -->|"persists via"| node_database
node_pos -->|"persists via"| node_database
node_invoices -->|"persists via"| node_database
node_blockchains -->|"persists via"| node_database
node_nodes -->|"persists via"| node_database
node_rules -->|"persists via"| node_database
node_notifications -->|"persists via"| node_database
node_logs -->|"persists via"| node_database

click node_site "https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/controllers/SiteController.php"
click node_users "https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Users.php"
click node_signup "https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/SignupForm.php"
click node_dashboard "https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/controllers/BackendController.php"
click node_merchants "https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Merchants.php"
click node_stores "https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Stores.php"
click node_pos "https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Pos.php"
click node_invoices "https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Invoices.php"
click node_subscriptions "https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/controllers/SubscriptionsController.php"
click node_apikeys "https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Apikeys.php"
click node_blockchains "https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Blockchains.php"
click node_nodes "https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Nodes.php"
click node_host "https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Host.php"
click node_owner "https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Owner.php"
click node_webapp "https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/components/WebApp.php"
click node_rules "https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/RulesEngines.php"
click node_requests "https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/controllers/RulesenginerequestsController.php"
click node_notifications "https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Notifications.php"
click node_readers "https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/NotificationsReaders.php"
click node_logs "https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Logs.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_site,node_users,node_signup,node_dashboard,node_operator toneBlue
class node_merchants,node_stores,node_pos,node_invoices,node_subscriptions,node_apikeys,node_database toneAmber
class node_blockchains,node_nodes,node_host,node_owner,node_webapp toneMint
class node_rules,node_requests,node_notifications,node_readers,node_logs toneRose
```

## Components

### Accounts and dashboard

- [Site and access](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/controllers/SiteController.php): `controllers/SiteController.php`
- [User accounts](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Users.php): `models/Users.php`
- [Registration](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/SignupForm.php): `models/SignupForm.php`
- [Admin dashboard](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/controllers/BackendController.php): `controllers/BackendController.php`

### Loyalty operations

- [Merchants](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Merchants.php): `models/Merchants.php`
- [Stores](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Stores.php): `models/Stores.php`
- [Point of sale](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Pos.php): `models/Pos.php`
- [Invoices](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Invoices.php): `models/Invoices.php`
- [Subscriptions](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/controllers/SubscriptionsController.php): `controllers/SubscriptionsController.php`
- [API keys](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Apikeys.php): `models/Apikeys.php`

### Blockchain settings

- [Blockchains](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Blockchains.php): `models/Blockchains.php`
- [Blockchain nodes](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Nodes.php): `models/Nodes.php`
- [Host settings](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Host.php): `models/Host.php`
- [Owner settings](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Owner.php): `models/Owner.php`
- [Web app utilities](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/components/WebApp.php): `components/WebApp.php`

### Messaging and rules

- [Rules engines](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/RulesEngines.php): `models/RulesEngines.php`
- [Engine requests](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/controllers/RulesenginerequestsController.php): `controllers/RulesenginerequestsController.php`
- [Notifications](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Notifications.php): `models/Notifications.php`
- [Notification readers](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/NotificationsReaders.php): `models/NotificationsReaders.php`
- [Logs](https://github.com/jambtc/yii2-fidelity.dashboard/blob/main/models/Logs.php): `models/Logs.php`

### Other components

- **Dashboard user**
- **Application database**

## Connections

- Dashboard user → Site and access: uses
- Dashboard user → Admin dashboard: manages
- Site and access → Registration: registers with (evidence: `controllers/SiteController.php`)
- Site and access → User accounts: authenticates (evidence: `controllers/SiteController.php`)
- Site and access → Invoices: loads (evidence: `controllers/SiteController.php`)
- Admin dashboard → Notifications: uses (evidence: `controllers/BackendController.php`)
- Admin dashboard → Notification readers: uses (evidence: `controllers/BackendController.php`)
- Admin dashboard → Web app utilities: uses (evidence: `controllers/BackendController.php`)
- Registration → User accounts: creates (evidence: `models/SignupForm.php`)
- Stores → Merchants: references (evidence: `models/Stores.php`)
- Stores → Blockchains: references (evidence: `models/Stores.php`)
- Blockchain nodes → Blockchains: references (evidence: `models/Nodes.php`)
- Web app utilities → Blockchain nodes: uses (evidence: `components/WebApp.php`)
- Rules engines → Web app utilities: encrypts with (evidence: `models/RulesEngines.php`)
- Engine requests → Rules engines: searches (evidence: `controllers/RulesenginerequestsController.php`)
- Notifications → Notification readers: references (evidence: `models/Notifications.php`)
- User accounts → Application database: persists via (evidence: `models/Users.php`)
- Merchants → Application database: persists via (evidence: `models/Merchants.php`)
- Stores → Application database: persists via (evidence: `models/Stores.php`)
- Point of sale → Application database: persists via (evidence: `models/Pos.php`)
- Invoices → Application database: persists via (evidence: `models/Invoices.php`)
- Blockchains → Application database: persists via (evidence: `models/Blockchains.php`)
- Blockchain nodes → Application database: persists via (evidence: `models/Nodes.php`)
- Rules engines → Application database: persists via (evidence: `models/RulesEngines.php`)
- Notifications → Application database: persists via (evidence: `models/Notifications.php`)
- Logs → Application database: persists via (evidence: `models/Logs.php`)
