# uzaam07/online-rural-banking-system architecture

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

- Interactive diagram: https://gitdiagram.com/uzaam07/online-rural-banking-system
- Repository: https://github.com/uzaam07/online-rural-banking-system

## Overview

This PHP web application provides role-based rural banking workflows for customers, collectors, and managers. A typical customer registers or signs in, views account and loan information, applies for a loan, and can follow transactions and reports; staff manage users, approve loans, and record or collect payments. The README describes cloud-backed centralized banking, while sampled code also contains direct MySQL queries. The graph preserves documented capabilities, but does not assume an implemented service bus or cloud provisioning layer; unsampled feature links are documented rather than inferred from filenames.

Main entry points: [`auth_check.php`](https://github.com/uzaam07/online-rural-banking-system/blob/main/auth_check.php) (Session and role checks), [`login.php`](https://github.com/uzaam07/online-rural-banking-system/blob/main/login.php) (Sign-in), [`Registration.php`](https://github.com/uzaam07/online-rural-banking-system/blob/main/Registration.php) (Registration), [`reports.php`](https://github.com/uzaam07/online-rural-banking-system/blob/main/reports.php) (Reports and exports)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and interface"]
  node_registration["Registration<br/>[Registration.php]"]
  node_login["Sign-in<br/>[login.php]"]
  node_auth["Session and role checks<br/>[auth_check.php]"]
  node_web_ui["Shared page layout<br/>[header.php]"]
end

subgraph group_accounts["Accounts and users"]
  node_customer_home["Customer dashboard"]
  node_admin_home["Admin dashboard"]
  node_profile["Profile management<br/>[profile.php]"]
  node_user_admin["User administration<br/>[manage_users.php]"]
end

subgraph group_lending["Loans and payments"]
  node_loan_apply["Loan applications<br/>[apply_loan.php]"]
  node_loan_review["Loan review<br/>[loan_approvals.php]"]
  node_loan_view["Loan details<br/>[view_loan.php]"]
  node_payment_entry["Payment recording<br/>[record_payment.php]"]
  node_payment_collection["Collector payments"]
  node_payment_history["Payment history"]
  node_transactions["Transactions<br/>[transactions.php]"]
end

subgraph group_insight["Notifications and reporting"]
  node_reports["Reports and exports<br/>[reports.php]"]
  node_export["Report export<br/>[export_report.php]"]
  node_notifications["Notifications<br/>[notifications.php]"]
  node_notification_view["Notification details"]
  node_email["Email notifications"]
end

node_customers(("Customer"))
node_staff(("Cashier and manager"))
node_database[("MySQL banking data")]

node_customers -->|"registers"| node_registration
node_registration -.->|"creates account"| node_database
node_registration -->|"redirects after signup"| node_login
node_customers -->|"signs in"| node_login
node_staff -->|"signs in"| node_login
node_login -->|"uses registration"| node_registration
node_login -.->|"requires"| node_auth
node_customer_home -->|"checks access"| node_auth
node_admin_home -->|"checks access"| node_auth
node_profile -->|"checks access"| node_auth
node_user_admin -->|"checks access"| node_auth
node_loan_apply -->|"checks access"| node_auth
node_loan_review -->|"checks access"| node_auth
node_payment_entry -->|"checks access"| node_auth
node_payment_collection -->|"checks access"| node_auth
node_reports -->|"checks roles"| node_auth
node_notifications -->|"checks access"| node_auth
node_notification_view -->|"checks access"| node_auth
node_customer_home -.->|"reads loan data"| node_database
node_admin_home -->|"queries summaries"| node_database
node_profile -.->|"updates profile"| node_database
node_user_admin -.->|"manages users"| node_database
node_loan_apply -.->|"stores requests"| node_database
node_loan_review -.->|"updates decisions"| node_database
node_loan_view -->|"checks access"| node_auth
node_payment_entry -.->|"records payment"| node_database
node_payment_collection -.->|"records collections"| node_database
node_payment_history -->|"checks access"| node_auth
node_transactions -->|"checks access"| node_auth
node_transactions -.->|"reads transactions"| node_database
node_reports -.->|"queries metrics"| node_database
node_export -->|"checks access"| node_auth
node_reports -.->|"exports reports"| node_export
node_notifications -.->|"opens details"| node_notification_view
node_email -.->|"sends notices"| node_customers
node_web_ui -->|"links signup"| node_registration
node_web_ui -.->|"links sign-in"| node_login

click node_registration "https://github.com/uzaam07/online-rural-banking-system/blob/main/Registration.php"
click node_login "https://github.com/uzaam07/online-rural-banking-system/blob/main/login.php"
click node_auth "https://github.com/uzaam07/online-rural-banking-system/blob/main/auth_check.php"
click node_web_ui "https://github.com/uzaam07/online-rural-banking-system/blob/main/includes/header.php"
click node_customer_home "https://github.com/uzaam07/online-rural-banking-system/blob/main/customer_dashboard.php"
click node_admin_home "https://github.com/uzaam07/online-rural-banking-system/blob/main/admin_dashboard.php"
click node_profile "https://github.com/uzaam07/online-rural-banking-system/blob/main/profile.php"
click node_user_admin "https://github.com/uzaam07/online-rural-banking-system/blob/main/manage_users.php"
click node_loan_apply "https://github.com/uzaam07/online-rural-banking-system/blob/main/apply_loan.php"
click node_loan_review "https://github.com/uzaam07/online-rural-banking-system/blob/main/loan_approvals.php"
click node_loan_view "https://github.com/uzaam07/online-rural-banking-system/blob/main/view_loan.php"
click node_payment_entry "https://github.com/uzaam07/online-rural-banking-system/blob/main/record_payment.php"
click node_payment_collection "https://github.com/uzaam07/online-rural-banking-system/blob/main/collect_payments.php"
click node_payment_history "https://github.com/uzaam07/online-rural-banking-system/blob/main/collector_payment_history.php"
click node_transactions "https://github.com/uzaam07/online-rural-banking-system/blob/main/transactions.php"
click node_reports "https://github.com/uzaam07/online-rural-banking-system/blob/main/reports.php"
click node_export "https://github.com/uzaam07/online-rural-banking-system/blob/main/export_report.php"
click node_notifications "https://github.com/uzaam07/online-rural-banking-system/blob/main/notifications.php"
click node_notification_view "https://github.com/uzaam07/online-rural-banking-system/blob/main/view_notification.php"
click node_email "https://github.com/uzaam07/online-rural-banking-system/blob/main/includes/email_notification.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_registration,node_login,node_auth,node_web_ui toneBlue
class node_customer_home,node_admin_home,node_profile,node_user_admin,node_database toneAmber
class node_loan_apply,node_loan_review,node_loan_view,node_payment_entry,node_payment_collection,node_payment_history,node_transactions toneMint
class node_reports,node_export,node_notifications,node_notification_view,node_email toneRose
class node_customers,node_staff toneIndigo
```

## Components

### Access and interface

- [Registration](https://github.com/uzaam07/online-rural-banking-system/blob/main/Registration.php): `Registration.php`
- [Sign-in](https://github.com/uzaam07/online-rural-banking-system/blob/main/login.php): `login.php`
- [Session and role checks](https://github.com/uzaam07/online-rural-banking-system/blob/main/auth_check.php): `auth_check.php`
- [Shared page layout](https://github.com/uzaam07/online-rural-banking-system/blob/main/includes/header.php): `includes/header.php`

### Accounts and users

- [Customer dashboard](https://github.com/uzaam07/online-rural-banking-system/blob/main/customer_dashboard.php): `customer_dashboard.php`
- [Admin dashboard](https://github.com/uzaam07/online-rural-banking-system/blob/main/admin_dashboard.php): `admin_dashboard.php`
- [Profile management](https://github.com/uzaam07/online-rural-banking-system/blob/main/profile.php): `profile.php`
- [User administration](https://github.com/uzaam07/online-rural-banking-system/blob/main/manage_users.php): `manage_users.php`

### Loans and payments

- [Loan applications](https://github.com/uzaam07/online-rural-banking-system/blob/main/apply_loan.php): `apply_loan.php`
- [Loan review](https://github.com/uzaam07/online-rural-banking-system/blob/main/loan_approvals.php): `loan_approvals.php`
- [Loan details](https://github.com/uzaam07/online-rural-banking-system/blob/main/view_loan.php): `view_loan.php`
- [Payment recording](https://github.com/uzaam07/online-rural-banking-system/blob/main/record_payment.php): `record_payment.php`
- [Collector payments](https://github.com/uzaam07/online-rural-banking-system/blob/main/collect_payments.php): `collect_payments.php`
- [Payment history](https://github.com/uzaam07/online-rural-banking-system/blob/main/collector_payment_history.php): `collector_payment_history.php`
- [Transactions](https://github.com/uzaam07/online-rural-banking-system/blob/main/transactions.php): `transactions.php`

### Notifications and reporting

- [Reports and exports](https://github.com/uzaam07/online-rural-banking-system/blob/main/reports.php): `reports.php`
- [Report export](https://github.com/uzaam07/online-rural-banking-system/blob/main/export_report.php): `export_report.php`
- [Notifications](https://github.com/uzaam07/online-rural-banking-system/blob/main/notifications.php): `notifications.php`
- [Notification details](https://github.com/uzaam07/online-rural-banking-system/blob/main/view_notification.php): `view_notification.php`
- [Email notifications](https://github.com/uzaam07/online-rural-banking-system/blob/main/includes/email_notification.php): `includes/email_notification.php`

### Other components

- **Customer**
- **Cashier and manager**
- **MySQL banking data**

## Connections

- Customer → Registration: registers
- Registration → MySQL banking data: creates account
- Registration → Sign-in: redirects after signup (evidence: `login.php`)
- Customer → Sign-in: signs in
- Cashier and manager → Sign-in: signs in
- Sign-in → Registration: uses registration (evidence: `login.php`)
- Sign-in → Session and role checks: requires
- Customer dashboard → Session and role checks: checks access (evidence: `customer_dashboard.php`)
- Admin dashboard → Session and role checks: checks access (evidence: `admin_dashboard.php`)
- Profile management → Session and role checks: checks access (evidence: `profile.php`)
- User administration → Session and role checks: checks access (evidence: `manage_users.php`)
- Loan applications → Session and role checks: checks access (evidence: `apply_loan.php`)
- Loan review → Session and role checks: checks access (evidence: `loan_approvals.php`)
- Payment recording → Session and role checks: checks access (evidence: `record_payment.php`)
- Collector payments → Session and role checks: checks access (evidence: `collect_payments.php`)
- Reports and exports → Session and role checks: checks roles (evidence: `reports.php`)
- Notifications → Session and role checks: checks access (evidence: `notifications.php`)
- Notification details → Session and role checks: checks access (evidence: `view_notification.php`)
- Customer dashboard → MySQL banking data: reads loan data
- Admin dashboard → MySQL banking data: queries summaries
- Profile management → MySQL banking data: updates profile
- User administration → MySQL banking data: manages users
- Loan applications → MySQL banking data: stores requests
- Loan review → MySQL banking data: updates decisions
- Loan details → Session and role checks: checks access (evidence: `view_loan.php`)
- Payment recording → MySQL banking data: records payment
- Collector payments → MySQL banking data: records collections
- Payment history → Session and role checks: checks access (evidence: `collector_payment_history.php`)
- Transactions → Session and role checks: checks access (evidence: `transactions.php`)
- Transactions → MySQL banking data: reads transactions
- Reports and exports → MySQL banking data: queries metrics
- Report export → Session and role checks: checks access (evidence: `export_report.php`)
- Reports and exports → Report export: exports reports
- Notifications → Notification details: opens details
- Email notifications → Customer: sends notices
- Shared page layout → Registration: links signup (evidence: `includes/header.php`)
- Shared page layout → Sign-in: links sign-in (evidence: `login.php`)
