# muhammadawais-khan/bfc-funds-disbursement architecture

> Architecture diagram of the GitHub repository muhammadawais-khan/bfc-funds-disbursement, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/muhammadawais-khan/bfc-funds-disbursement
- Repository: https://github.com/muhammadawais-khan/bfc-funds-disbursement

## Overview

The repository contains a CodeIgniter-based grants administration and application system. Its principal user journey is applying for a scholarship or interest-free loan and tracking the application; administrators also manage grant records, batches, and reporting. The route configuration explicitly maps these capabilities to controllers. The graph includes CodeIgniter’s documented request-routing layer and the application’s database configuration; sampled excerpts do not establish controller-to-model or controller-to-view calls, so those links are omitted.

Main entry points: [`system/core/Router.php`](https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/system/core/Router.php) (Request Router), [`index.php`](https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/index.php) (Front Controller), [`application/core/MY_Controller.php`](https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/core/MY_Controller.php) (Application Base), [`application/config/database.php`](https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/config/database.php) (Database Setup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public Applications"]
  node_apply["Application Intake<br/>[Apply.php]"]
  node_tracking["Application Tracking<br/>[Apply.php]"]
end

subgraph group_admin["Grant Administration"]
  node_scholarship["Scholarship Grants<br/>[Scholarship.php]"]
  node_loans["Interest-Free Loans"]
  node_retirement["Retirement Grants<br/>[Retirement.php]"]
  node_funeral["Funeral Grants<br/>[Funeral.php]"]
  node_monthly["Monthly Grants<br/>[Monthly_grant.php]"]
  node_lumpsum["Lump-Sum Grants<br/>[Lumpsum.php]"]
  node_batches["Payment Batches<br/>[Batches.php]"]
  node_reports["Grant Reports<br/>[Reports.php]"]
  node_grant_payments["Grant Payments<br/>[Grant_payments.php]"]
end

subgraph group_runtime["CodeIgniter Runtime"]
  node_routes["Application Routes<br/>[routes.php]"]
  node_router["Request Router<br/>[Router.php]"]
  node_entry["Front Controller<br/>[index.php]"]
  node_ci_controller["Base Controller<br/>[Controller.php]"]
  node_my_controller["Application Base<br/>[MY_Controller.php]"]
end

subgraph group_data["Data Layer"]
  node_models["Domain Models"]
  node_database_config["Database Setup<br/>[database.php]"]
  node_database[("SQL Database")]
end

node_applicant(("Applicant"))
node_administrator(("Administrator"))

node_applicant -->|"sends request"| node_entry
node_administrator -->|"sends request"| node_entry
node_entry -->|"bootstraps"| node_router
node_router -->|"loads routes"| node_routes
node_router -->|"dispatches"| node_apply
node_router -->|"dispatches"| node_tracking
node_router -->|"dispatches"| node_scholarship
node_router -->|"dispatches"| node_loans
node_router -->|"dispatches"| node_retirement
node_router -->|"dispatches"| node_funeral
node_router -->|"dispatches"| node_monthly
node_router -->|"dispatches"| node_lumpsum
node_router -->|"dispatches"| node_batches
node_router -->|"dispatches"| node_reports
node_router -->|"dispatches"| node_grant_payments
node_my_controller -->|"extends"| node_ci_controller
node_database_config -->|"configures"| node_database

click node_routes "https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/config/routes.php"
click node_router "https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/system/core/Router.php"
click node_entry "https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/index.php"
click node_ci_controller "https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/system/core/Controller.php"
click node_my_controller "https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/core/MY_Controller.php"
click node_apply "https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/controllers/Apply.php"
click node_tracking "https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/controllers/Apply.php"
click node_scholarship "https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/controllers/Scholarship.php"
click node_loans "https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/controllers/Interest_free_loan.php"
click node_retirement "https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/controllers/Retirement.php"
click node_funeral "https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/controllers/Funeral.php"
click node_monthly "https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/controllers/Monthly_grant.php"
click node_lumpsum "https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/controllers/Lumpsum.php"
click node_batches "https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/controllers/Batches.php"
click node_reports "https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/controllers/Reports.php"
click node_grant_payments "https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/controllers/Grant_payments.php"
click node_models "https://github.com/muhammadawais-khan/bfc-funds-disbursement/tree/main/application/models"
click node_database_config "https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/config/database.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_apply,node_tracking toneBlue
class node_scholarship,node_loans,node_retirement,node_funeral,node_monthly,node_lumpsum,node_batches,node_reports,node_grant_payments toneAmber
class node_routes,node_router,node_entry,node_ci_controller,node_my_controller toneMint
class node_models,node_database_config,node_database toneRose
class node_applicant,node_administrator toneIndigo
```

## Components

### Public Applications

- [Application Intake](https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/controllers/Apply.php): `application/controllers/Apply.php`
- [Application Tracking](https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/controllers/Apply.php): `application/controllers/Apply.php`

### Grant Administration

- [Scholarship Grants](https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/controllers/Scholarship.php): `application/controllers/Scholarship.php`
- [Interest-Free Loans](https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/controllers/Interest_free_loan.php): `application/controllers/Interest_free_loan.php`
- [Retirement Grants](https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/controllers/Retirement.php): `application/controllers/Retirement.php`
- [Funeral Grants](https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/controllers/Funeral.php): `application/controllers/Funeral.php`
- [Monthly Grants](https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/controllers/Monthly_grant.php): `application/controllers/Monthly_grant.php`
- [Lump-Sum Grants](https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/controllers/Lumpsum.php): `application/controllers/Lumpsum.php`
- [Payment Batches](https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/controllers/Batches.php): `application/controllers/Batches.php`
- [Grant Reports](https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/controllers/Reports.php): `application/controllers/Reports.php`
- [Grant Payments](https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/controllers/Grant_payments.php): `application/controllers/Grant_payments.php`

### CodeIgniter Runtime

- [Application Routes](https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/config/routes.php): `application/config/routes.php`
- [Request Router](https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/system/core/Router.php): `system/core/Router.php`
- [Front Controller](https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/index.php): `index.php`
- [Base Controller](https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/system/core/Controller.php): `system/core/Controller.php`
- [Application Base](https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/core/MY_Controller.php): `application/core/MY_Controller.php`

### Data Layer

- [Domain Models](https://github.com/muhammadawais-khan/bfc-funds-disbursement/tree/main/application/models): `application/models`
- [Database Setup](https://github.com/muhammadawais-khan/bfc-funds-disbursement/blob/main/application/config/database.php): `application/config/database.php`
- **SQL Database**

### Other components

- **Applicant**
- **Administrator**

## Connections

- Applicant → Front Controller: sends request
- Administrator → Front Controller: sends request
- Front Controller → Request Router: bootstraps
- Request Router → Application Routes: loads routes
- Request Router → Application Intake: dispatches
- Request Router → Application Tracking: dispatches
- Request Router → Scholarship Grants: dispatches
- Request Router → Interest-Free Loans: dispatches
- Request Router → Retirement Grants: dispatches
- Request Router → Funeral Grants: dispatches
- Request Router → Monthly Grants: dispatches
- Request Router → Lump-Sum Grants: dispatches
- Request Router → Payment Batches: dispatches
- Request Router → Grant Reports: dispatches
- Request Router → Grant Payments: dispatches
- Application Base → Base Controller: extends
- Database Setup → SQL Database: configures
