# moses-cell/src architecture

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

- Interactive diagram: https://gitdiagram.com/moses-cell/src
- Repository: https://github.com/moses-cell/src

## Overview

This repository appears to be a PHP HR training-management application. Its principal workflow is staff or administrators managing training requests and schedules, followed by participant administration and evaluation/reporting. The tree also shows profile, intern, trainer, configuration, and notification capabilities. Source excerpts do not expose most application routing or call relationships, so those links are shown as unverified; the README is empty. The bundled spreadsheet and mail libraries are represented as supporting capabilities, not as the application’s main workflow.

Main entry points: [`f-hr-training-schedule.php`](https://github.com/moses-cell/src/blob/main/f-hr-training-schedule.php) (Training schedules), [`index.php`](https://github.com/moses-cell/src/blob/main/index.php) (Application pages), [`login.php`](https://github.com/moses-cell/src/blob/main/login.php) (Login and session), [`f-training-application.php`](https://github.com/moses-cell/src/blob/main/f-training-application.php) (Training applications)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application access"]
  node_entrypoint["Application pages<br/>[index.php]"]
  node_login["Login and session<br/>[login.php]"]
  node_sessiondata["Session data access<br/>[ds_session.php]"]
end

subgraph group_training["Training operations"]
  node_requests["Training requests"]
  node_applications["Training applications"]
  node_schedules["Training schedules"]
  node_modules["Training modules"]
  node_participants["Participants"]
end

subgraph group_people["People and evaluation"]
  node_profiles["Staff and trainer profiles"]
  node_interns["Intern management"]
  node_assessment["Training assessment"]
end

subgraph group_reporting["Reporting and support"]
  node_dashboards["Dashboards<br/>[dashboard.php]"]
  node_reports["Reports and exports<br/>[c_report.php]"]
  node_dataaccess["Shared data access<br/>[ds_global.php]"]
end

subgraph group_libraries["Bundled libraries"]
  node_spreadsheet["Spreadsheet support"]
  node_mailer["Email support<br/>[PHPMailer.php]"]
end

node_users(("Staff and admins"))

node_users -.->|"use pages"| node_entrypoint
node_users -.->|"authenticate"| node_login
node_login -.->|"check identity"| node_sessiondata
node_requests -.->|"submit request"| node_applications
node_applications -.->|"schedule training"| node_schedules
node_schedules -.->|"manage participants"| node_participants
node_modules -.->|"support scheduling"| node_schedules
node_participants -.->|"evaluate attendance"| node_assessment
node_profiles -.->|"manage people"| node_interns
node_entrypoint -.->|"show dashboards"| node_dashboards
node_dashboards -.->|"provide reporting"| node_reports
node_reports -.->|"export sheets"| node_spreadsheet
node_dataaccess -->|"provides base data access"| node_sessiondata

click node_entrypoint "https://github.com/moses-cell/src/blob/main/index.php"
click node_login "https://github.com/moses-cell/src/blob/main/login.php"
click node_sessiondata "https://github.com/moses-cell/src/blob/main/library/dataset/ds_session.php"
click node_requests "https://github.com/moses-cell/src/blob/main/f-training-request.php"
click node_applications "https://github.com/moses-cell/src/blob/main/f-training-application.php"
click node_schedules "https://github.com/moses-cell/src/blob/main/f-hr-training-schedule.php"
click node_modules "https://github.com/moses-cell/src/blob/main/f-hr-training-module.php"
click node_participants "https://github.com/moses-cell/src/blob/main/f-hr-new-participant.php"
click node_profiles "https://github.com/moses-cell/src/blob/main/f-hr-staff-profile.php"
click node_interns "https://github.com/moses-cell/src/blob/main/f-hr-intern-profile.php"
click node_assessment "https://github.com/moses-cell/src/blob/main/f-course-evaluation.php"
click node_dashboards "https://github.com/moses-cell/src/blob/main/dashboard.php"
click node_reports "https://github.com/moses-cell/src/blob/main/library/class/c_report.php"
click node_dataaccess "https://github.com/moses-cell/src/blob/main/library/dataset/ds_global.php"
click node_spreadsheet "https://github.com/moses-cell/src/tree/main/library/PHPExcel/PHPExcel"
click node_mailer "https://github.com/moses-cell/src/blob/main/library/PHPMailer/PHPMailer.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_entrypoint,node_login,node_sessiondata toneBlue
class node_requests,node_applications,node_schedules,node_modules,node_participants toneAmber
class node_profiles,node_interns,node_assessment toneMint
class node_dashboards,node_reports,node_dataaccess toneRose
class node_spreadsheet,node_mailer,node_users toneIndigo
```

## Components

### Application access

- [Application pages](https://github.com/moses-cell/src/blob/main/index.php): `index.php`
- [Login and session](https://github.com/moses-cell/src/blob/main/login.php): `login.php`
- [Session data access](https://github.com/moses-cell/src/blob/main/library/dataset/ds_session.php): `library/dataset/ds_session.php`

### Training operations

- [Training requests](https://github.com/moses-cell/src/blob/main/f-training-request.php): `f-training-request.php`
- [Training applications](https://github.com/moses-cell/src/blob/main/f-training-application.php): `f-training-application.php`
- [Training schedules](https://github.com/moses-cell/src/blob/main/f-hr-training-schedule.php): `f-hr-training-schedule.php`
- [Training modules](https://github.com/moses-cell/src/blob/main/f-hr-training-module.php): `f-hr-training-module.php`
- [Participants](https://github.com/moses-cell/src/blob/main/f-hr-new-participant.php): `f-hr-new-participant.php`

### People and evaluation

- [Staff and trainer profiles](https://github.com/moses-cell/src/blob/main/f-hr-staff-profile.php): `f-hr-staff-profile.php`
- [Intern management](https://github.com/moses-cell/src/blob/main/f-hr-intern-profile.php): `f-hr-intern-profile.php`
- [Training assessment](https://github.com/moses-cell/src/blob/main/f-course-evaluation.php): `f-course-evaluation.php`

### Reporting and support

- [Dashboards](https://github.com/moses-cell/src/blob/main/dashboard.php): `dashboard.php`
- [Reports and exports](https://github.com/moses-cell/src/blob/main/library/class/c_report.php): `library/class/c_report.php`
- [Shared data access](https://github.com/moses-cell/src/blob/main/library/dataset/ds_global.php): `library/dataset/ds_global.php`

### Bundled libraries

- [Spreadsheet support](https://github.com/moses-cell/src/tree/main/library/PHPExcel/PHPExcel): `library/PHPExcel/PHPExcel`
- [Email support](https://github.com/moses-cell/src/blob/main/library/PHPMailer/PHPMailer.php): `library/PHPMailer/PHPMailer.php`

### Other components

- **Staff and admins**

## Connections

- Staff and admins → Application pages: use pages
- Staff and admins → Login and session: authenticate
- Login and session → Session data access: check identity
- Training requests → Training applications: submit request
- Training applications → Training schedules: schedule training
- Training schedules → Participants: manage participants
- Training modules → Training schedules: support scheduling
- Participants → Training assessment: evaluate attendance
- Staff and trainer profiles → Intern management: manage people
- Application pages → Dashboards: show dashboards
- Dashboards → Reports and exports: provide reporting
- Reports and exports → Spreadsheet support: export sheets
- Shared data access → Session data access: provides base data access (evidence: `library/dataset/ds_session.php`)
